aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/domain_build.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-08-24 08:02:08 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-08-24 08:02:08 +0100
commit0810208cf1478f58c401d9a37c52a4330f2246e4 (patch)
tree5891c7e6cd8e25a6ff39edb915909c0006626729 /xen/arch/x86/domain_build.c
parent2db97700d4b64790a80e086bfa161f549cc2d946 (diff)
downloadxen-0810208cf1478f58c401d9a37c52a4330f2246e4.tar.gz
xen-0810208cf1478f58c401d9a37c52a4330f2246e4.tar.bz2
xen-0810208cf1478f58c401d9a37c52a4330f2246e4.zip
x86: run timers when populating Dom0's P2M table
When booting Dom0 with huge amounts of memory, and/or memory accesses being sufficiently slow (due to NUMA effects), and the ACPI PM timer or a high frequency HPET being used, the time it takes to populate the M2P table may significantly exceed the overflow time of the platform timer, screwing up time management to the point where Dom0 boot fails. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/domain_build.c')
-rw-r--r--xen/arch/x86/domain_build.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/arch/x86/domain_build.c b/xen/arch/x86/domain_build.c
index dac49b7633..0c35e58b3d 100644
--- a/xen/arch/x86/domain_build.c
+++ b/xen/arch/x86/domain_build.c
@@ -927,6 +927,8 @@ int __init construct_dom0(
else
((unsigned int *)vphysmap_start)[pfn] = mfn;
set_gpfn_from_mfn(mfn, pfn);
+ if (!(pfn & 0xfffff))
+ process_pending_timers();
}
si->first_p2m_pfn = pfn;
si->nr_p2m_frames = d->tot_pages - count;
@@ -945,6 +947,8 @@ int __init construct_dom0(
#ifndef NDEBUG
++alloc_epfn;
#endif
+ if (!(pfn & 0xfffff))
+ process_pending_timers();
}
}
BUG_ON(pfn != d->tot_pages);
@@ -965,6 +969,8 @@ int __init construct_dom0(
set_gpfn_from_mfn(mfn, pfn);
#undef pfn
page++; pfn++;
+ if (!(pfn & 0xfffff))
+ process_pending_timers();
}
}