summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86_emulate.c
diff options
context:
space:
mode:
authorGleb Natapov2009-04-02 14:51:46 +0200
committerAvi Kivity2009-06-10 10:48:38 +0200
commit2d033196541959d91802d5a62e63771448101557 (patch)
tree5bbbd5a8082279186439e5011e1db08d327368a8 /arch/x86/kvm/x86_emulate.c
parentKVM: MMU: Discard reserved bits checking on PDE bit 7-8 (diff)
downloadkernel-qcow2-linux-2d033196541959d91802d5a62e63771448101557.tar.gz
kernel-qcow2-linux-2d033196541959d91802d5a62e63771448101557.tar.xz
kernel-qcow2-linux-2d033196541959d91802d5a62e63771448101557.zip
KVM: x86 emulator: fix call near emulation
The length of pushed on to the stack return address depends on operand size not address size. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86_emulate.c')
-rw-r--r--arch/x86/kvm/x86_emulate.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c
index ca91749d2083..d7c9f6fd0d34 100644
--- a/arch/x86/kvm/x86_emulate.c
+++ b/arch/x86/kvm/x86_emulate.c
@@ -1792,7 +1792,6 @@ special_insn:
}
c->src.val = (unsigned long) c->eip;
jmp_rel(c, rel);
- c->op_bytes = c->ad_bytes;
emulate_push(ctxt);
break;
}