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

[Xen-changelog] Fix context copy code in NMI handler.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 5a37d91b1587b2e7524f2f67d5d63194e321a7f6
# Parent  0defafc42af4ad2545ac0dbe37d4a6b4b43a6ff8
Fix context copy code in NMI handler.

Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r 0defafc42af4 -r 5a37d91b1587 xen/arch/x86/x86_64/entry.S
--- a/xen/arch/x86/x86_64/entry.S       Mon Feb  6 16:04:45 2006
+++ b/xen/arch/x86/x86_64/entry.S       Mon Feb  6 16:48:34 2006
@@ -479,12 +479,12 @@
         jz    nmi_in_hypervisor_mode
         /* Interrupted guest context. Copy the context to stack bottom. */
         GET_GUEST_REGS(%rbx)
-        addq  $UREGS_kernel_sizeof,%rbx
         movl  $UREGS_kernel_sizeof/8,%ecx
 1:      popq  %rax
-        subq  $8,%rbx
         movq  %rax,(%rbx)
+        addq  $8,%rbx
         loop  1b
+        subq  $UREGS_kernel_sizeof,%rbx
         movq  %rbx,%rsp
 nmi_in_hypervisor_mode:
         movq  %rsp,%rdi

_______________________________________________
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®.