Skip to contentSkip to conversation

x86: fix NMI delivery to dom0

PATCH New Jan Beulich 1 participant 1 message Feb 12, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: fix NMI delivery to dom0

As I understand it, the condition for raising the respective softirq was inverted.

xen/arch/x86/traps.c +1 -1
Index: 2007-02-07/xen/arch/x86/traps.c
===================================================================
@@ -1804,7 +1804,7 @@ static void nmi_dom0_report(unsigned int
 
     set_bit(reason_idx, nmi_reason(d));
 
-    if ( test_and_set_bit(_VCPUF_nmi_pending, &v->vcpu_flags) )
+    if ( !test_and_set_bit(_VCPUF_nmi_pending, &v->vcpu_flags) )
         raise_softirq(NMI_SOFTIRQ); /* not safe to wake up a vcpu here */
 }