diff mbox

fix call near emulation

Message ID 20090402125146.GD29619@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gleb Natapov April 2, 2009, 12:51 p.m. UTC
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>
--
			Gleb.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Avi Kivity April 5, 2009, 12:42 p.m. UTC | #1
Gleb Natapov wrote:
> The length of pushed on to the stack return address depends on operand
> size not address size.
>   


Applied, thanks.
diff mbox

Patch

diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kvm/x86_emulate.c
index ca91749..d7c9f6f 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;
 	}