ia64/xen-unstable

changeset 18780:832efb028a1d

x86, vmx realmode: Stack manipulation on interrupt/exception injection
should respect SS size, not CS size.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Nov 07 17:06:21 2008 +0000 (2008-11-07)
parents 256067cbf5b3
children 40668908260c
files xen/arch/x86/hvm/vmx/realmode.c
line diff
     1.1 --- a/xen/arch/x86/hvm/vmx/realmode.c	Fri Nov 07 17:00:39 2008 +0000
     1.2 +++ b/xen/arch/x86/hvm/vmx/realmode.c	Fri Nov 07 17:06:21 2008 +0000
     1.3 @@ -69,7 +69,7 @@ static void realmode_deliver_exception(
     1.4      frame[1] = csr->sel;
     1.5      frame[2] = regs->eflags & ~X86_EFLAGS_RF;
     1.6  
     1.7 -    if ( hvmemul_ctxt->ctxt.addr_size == 32 )
     1.8 +    if ( hvmemul_ctxt->ctxt.sp_size == 32 )
     1.9      {
    1.10          regs->esp -= 6;
    1.11          pstk = regs->esp;