ia64/xen-unstable

changeset 11281:d389123fad85

Don't emulate faulting writes to stack. May fix a number of recent hvm
bugs with the new shadow code. A more complete clean-up of the emulation
code will follow.

Signed-off-by: Steven Hand <steven@xensource.com>
author Steven Hand <steven@xensource.com>
date Wed Aug 23 17:25:11 2006 +0100 (2006-08-23)
parents 26b673aeff8b
children 51a98a6c2c05 cc006f78cbe2
files xen/arch/x86/x86_emulate.c
line diff
     1.1 --- a/xen/arch/x86/x86_emulate.c	Wed Aug 23 17:14:38 2006 +0100
     1.2 +++ b/xen/arch/x86/x86_emulate.c	Wed Aug 23 17:25:11 2006 +0100
     1.3 @@ -846,6 +846,9 @@ x86_emulate_memop(
     1.4              emulate_1op("dec", dst, _regs.eflags);
     1.5              break;
     1.6          case 6: /* push */
     1.7 +            /* Don't emulate if fault was on stack */
     1.8 +            if ( _regs.error_code & 2 )
     1.9 +                goto cannot_emulate; 
    1.10              /* 64-bit mode: PUSH always pushes a 64-bit operand. */
    1.11              if ( mode == X86EMUL_MODE_PROT64 )
    1.12              {