[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-4.0-testing] VT-d: prevent watchdog timer from kicking in when



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1273563673 -3600
# Node ID 210daab2dcb361e2c42097b82eac21bda963a1e0
# Parent  be5c53e9f1b8c40a8f052d92899927827f0ace07
VT-d: prevent watchdog timer from kicking in when
initializing on systems with huge amounts of memory

Process pending soft-IRQs every 4G worth of pages initialized for Dom0
to keep timekeeping happy and prevent the NMI watchdog (when enabled)
from kicking in.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
xen-unstable changeset:   21340:220fa418eaae
xen-unstable date:        Tue May 11 08:35:45 2010 +0100
---
 xen/drivers/passthrough/vtd/ia64/vtd.c |    4 ++++
 xen/drivers/passthrough/vtd/x86/vtd.c  |    4 ++++
 2 files changed, 8 insertions(+)

diff -r be5c53e9f1b8 -r 210daab2dcb3 xen/drivers/passthrough/vtd/ia64/vtd.c
--- a/xen/drivers/passthrough/vtd/ia64/vtd.c    Tue May 11 08:40:52 2010 +0100
+++ b/xen/drivers/passthrough/vtd/ia64/vtd.c    Tue May 11 08:41:13 2010 +0100
@@ -19,6 +19,7 @@
  */
 
 #include <xen/sched.h>
+#include <xen/softirq.h>
 #include <xen/domain_page.h>
 #include <xen/iommu.h>
 #include <xen/numa.h>
@@ -110,6 +111,9 @@ static int do_dom0_iommu_mapping(unsigne
             iommu_map_page(d, (pfn*tmp+j), (pfn*tmp+j));
 
        page_addr += PAGE_SIZE;
+
+        if (!(pfn & (0xfffff >> (PAGE_SHIFT - PAGE_SHIFT_4K))))
+            process_pending_softirqs();
     }
     return 0;
 }
diff -r be5c53e9f1b8 -r 210daab2dcb3 xen/drivers/passthrough/vtd/x86/vtd.c
--- a/xen/drivers/passthrough/vtd/x86/vtd.c     Tue May 11 08:40:52 2010 +0100
+++ b/xen/drivers/passthrough/vtd/x86/vtd.c     Tue May 11 08:41:13 2010 +0100
@@ -19,6 +19,7 @@
  */
 
 #include <xen/sched.h>
+#include <xen/softirq.h>
 #include <xen/domain_page.h>
 #include <asm/paging.h>
 #include <xen/iommu.h>
@@ -153,6 +154,9 @@ void iommu_set_dom0_mapping(struct domai
         tmp = 1 << (PAGE_SHIFT - PAGE_SHIFT_4K);
         for ( j = 0; j < tmp; j++ )
             iommu_map_page(d, (i*tmp+j), (i*tmp+j));
+
+        if (!(i & (0xfffff >> (PAGE_SHIFT - PAGE_SHIFT_4K))))
+            process_pending_softirqs();
     }
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.