]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
x86: Fix NMI injection to PV guests
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Aug 2010 15:50:37 +0000 (16:50 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 9 Aug 2010 15:50:37 +0000 (16:50 +0100)
Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
xen-unstable changeset:   21926:6f07d9ac1e7c
xen-unstable date:        Thu Aug 05 14:41:14 2010 +0100

xen/arch/x86/x86_32/entry.S
xen/arch/x86/x86_64/compat/entry.S
xen/arch/x86/x86_64/entry.S

index 85d527b6e981cedcf527dc6a4f82a7fddca92e72..5ea96a58f723c691242c391b89184a56a4d1ea72 100644 (file)
@@ -275,7 +275,7 @@ process_mce:
         ALIGN
 /* %ebx: struct vcpu */
 process_nmi:
-        cmpw $1 << VCPU_TRAP_NMI,VCPU_async_exception_mask(%ebx)
+        testb $1 << VCPU_TRAP_NMI,VCPU_async_exception_mask(%ebx)
         jnz  test_guest_events
         sti
         movb $0,VCPU_nmi_pending(%ebx)
index 597683ccf5e0ceb1c1a8e73d8c49600c27df6157..81fbcfe28dc66345e3e512983b64f210930ff140 100644 (file)
@@ -148,7 +148,7 @@ compat_process_mce:
        ALIGN
 /* %rbx: struct vcpu */
 compat_process_nmi:
-        cmpw $1 << VCPU_TRAP_NMI,VCPU_async_exception_mask(%rbx)
+        testb $1 << VCPU_TRAP_NMI,VCPU_async_exception_mask(%rbx)
         jnz  compat_test_guest_events
         sti
         movb  $0,VCPU_nmi_pending(%rbx)
index 4cb902ec09bd2bec18a78a077f0e0871bc1900bd..0558ba8eded524c2feda699173dc6f2f6de8f24e 100644 (file)
@@ -250,7 +250,7 @@ process_mce:
         ALIGN
 /* %rbx: struct vcpu */
 process_nmi:
-        cmpw $1 << VCPU_TRAP_NMI,VCPU_async_exception_mask(%rbx)
+        testb $1 << VCPU_TRAP_NMI,VCPU_async_exception_mask(%rbx)
         jnz  test_guest_events
         sti
         movb $0,VCPU_nmi_pending(%rbx)