From: Gleb Natapov Date: Thu, 2 Apr 2009 12:51:46 +0000 (+0300) Subject: KVM: x86 emulator: fix call near emulation X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2d033196541959d91802d5a62e63771448101557;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git 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 Signed-off-by: Avi Kivity --- 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; }