diff options
author | Amit Shah | 2007-11-18 17:55:40 +0100 |
---|---|---|
committer | Avi Kivity | 2007-11-27 14:28:29 +0100 |
commit | 00b2ef475d4728ca53a2bc788c7978042907e354 (patch) | |
tree | 628dbe7767628045fc6edf6c2335c607174b6636 | |
parent | KVM: x86 emulator: fix the saving of of the eip value (diff) | |
download | kernel-qcow2-linux-00b2ef475d4728ca53a2bc788c7978042907e354.tar.gz kernel-qcow2-linux-00b2ef475d4728ca53a2bc788c7978042907e354.tar.xz kernel-qcow2-linux-00b2ef475d4728ca53a2bc788c7978042907e354.zip |
KVM: x86 emulator: Use emulator_write_emulated and not emulator_write_std
emulator_write_std() is not implemented, and calling write_emulated should
work just as well in place of write_std.
Fixes emulator failures with the push r/m instruction.
Signed-off-by: Amit Shah <amit.shah@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
-rw-r--r-- | drivers/kvm/x86_emulate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c index 6c1413f9e9c3..bd46de6bf891 100644 --- a/drivers/kvm/x86_emulate.c +++ b/drivers/kvm/x86_emulate.c @@ -1146,7 +1146,7 @@ done_prefixes: } register_address_increment(_regs[VCPU_REGS_RSP], -dst.bytes); - if ((rc = ops->write_std( + if ((rc = ops->write_emulated( register_address(ctxt->ss_base, _regs[VCPU_REGS_RSP]), &dst.val, dst.bytes, ctxt->vcpu)) != 0) |