WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix context copy code in NMI handler., Xen patchbot -unstable <=