repository: /home/avi/kvm/linux-2.6 branch: master commit b8e12eed73291062dc33a8e01be096c2af0ef5a0 Author: Izik Eidus <[EMAIL PROTECTED]> Date: Sun Nov 11 14:46:34 2007 +0200
kvm: emulator: fix the saving of of the eip value, this make sure that no matter what is the operand size, all the value of the eip will be saved Signed-off-by: Izik Eidus <[EMAIL PROTECTED]> diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c index e969589..80cd96c 100644 --- a/drivers/kvm/x86_emulate.c +++ b/drivers/kvm/x86_emulate.c @@ -1573,6 +1573,12 @@ special_insn: } c->src.val = (unsigned long) c->eip; JMP_REL(rel); + /* + * emulate_push() save value in size of c->op_bytes, therefore + * we are setting it now to be the size of eip so all the value + * of eip will be saved + */ + c->op_bytes = c->ad_bytes; emulate_push(ctxt); break; } ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ kvm-commits mailing list kvm-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-commits