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

[Xen-changelog] [xen-unstable] x86, vmx realmode: Stack manipulation on interrupt/exception injection



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1226077581 0
# Node ID 832efb028a1dc72fb52edc11c958fd19f8542e48
# Parent  256067cbf5b30d07e856f8a4b97fae506b2f3c60
x86, vmx realmode: Stack manipulation on interrupt/exception injection
should respect SS size, not CS size.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/hvm/vmx/realmode.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 256067cbf5b3 -r 832efb028a1d xen/arch/x86/hvm/vmx/realmode.c
--- a/xen/arch/x86/hvm/vmx/realmode.c   Fri Nov 07 17:00:39 2008 +0000
+++ b/xen/arch/x86/hvm/vmx/realmode.c   Fri Nov 07 17:06:21 2008 +0000
@@ -69,7 +69,7 @@ static void realmode_deliver_exception(
     frame[1] = csr->sel;
     frame[2] = regs->eflags & ~X86_EFLAGS_RF;
 
-    if ( hvmemul_ctxt->ctxt.addr_size == 32 )
+    if ( hvmemul_ctxt->ctxt.sp_size == 32 )
     {
         regs->esp -= 6;
         pstk = regs->esp;

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