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

[Xen-changelog] [xen-unstable] Don't emulate faulting writes to stack. May fix a number of recent hvm



# HG changeset patch
# User Steven Hand <steven@xxxxxxxxxxxxx>
# Node ID d389123fad85966deb081e169b368f04256516e2
# Parent  26b673aeff8b40adfa7f64e16c9720d1cbd44293
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@xxxxxxxxxxxxx>
---
 xen/arch/x86/x86_emulate.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r 26b673aeff8b -r d389123fad85 xen/arch/x86/x86_emulate.c
--- a/xen/arch/x86/x86_emulate.c        Wed Aug 23 17:14:38 2006 +0100
+++ b/xen/arch/x86/x86_emulate.c        Wed Aug 23 17:25:11 2006 +0100
@@ -846,6 +846,9 @@ x86_emulate_memop(
             emulate_1op("dec", dst, _regs.eflags);
             break;
         case 6: /* push */
+            /* Don't emulate if fault was on stack */
+            if ( _regs.error_code & 2 )
+                goto cannot_emulate; 
             /* 64-bit mode: PUSH always pushes a 64-bit operand. */
             if ( mode == X86EMUL_MODE_PROT64 )
             {

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