[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] VMRUN should store the RIP after the instruction
From: |
Alexander Graf |
Subject: |
[Qemu-devel] [PATCH] VMRUN should store the RIP after the instruction |
Date: |
Wed, 04 Jun 2008 16:56:03 +0200 |
User-agent: |
Thunderbird 2.0.0.12 (X11/20071114) |
VMRUN stores the IP which is used to return to the instruction after the
VMRUN in case of a VMEXIT. Due to recent changes, this does not happen
anymore and a VMEXIT simply returns to the VMRUN instruction.
Alex
Index: target-i386/op_helper.c
===================================================================
--- target-i386/op_helper.c (revision 4661)
+++ target-i386/op_helper.c (working copy)
@@ -4836,7 +4836,7 @@
svm_save_seg(env->vm_hsave + offsetof(struct vmcb, save.ds),
&env->segs[R_DS]);
- stq_phys(env->vm_hsave + offsetof(struct vmcb, save.rip), EIP);
+ stq_phys(env->vm_hsave + offsetof(struct vmcb, save.rip), EIP + 3);
stq_phys(env->vm_hsave + offsetof(struct vmcb, save.rsp), ESP);
stq_phys(env->vm_hsave + offsetof(struct vmcb, save.rax), EAX);
- [Qemu-devel] [PATCH] VMRUN should store the RIP after the instruction,
Alexander Graf <=