All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: run timers when populating Dom0's P2M table
@ 2009-08-21 15:52 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2009-08-21 15:52 UTC (permalink / raw)
  To: xen-devel

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>

--- 2009-08-18.orig/xen/arch/x86/domain_build.c	2009-06-19 11:11:23.000000000 +0200
+++ 2009-08-18/xen/arch/x86/domain_build.c	2009-08-21 17:38:51.000000000 +0200
@@ -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();
         }
     }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-08-21 15:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-21 15:52 [PATCH] x86: run timers when populating Dom0's P2M table Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.