aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/x86_emulate.c
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@qumranet.com>2007-11-18 11:55:40 -0500
committerAvi Kivity <avi@qumranet.com>2007-11-27 08:28:29 -0500
commit00b2ef475d4728ca53a2bc788c7978042907e354 (patch)
tree628dbe7767628045fc6edf6c2335c607174b6636 /drivers/kvm/x86_emulate.c
parent2a738e20a11b44219aa83073d625ff1a7004e463 (diff)
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>
Diffstat (limited to 'drivers/kvm/x86_emulate.c')
-rw-r--r--drivers/kvm/x86_emulate.c2
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:
1146 } 1146 }
1147 register_address_increment(_regs[VCPU_REGS_RSP], 1147 register_address_increment(_regs[VCPU_REGS_RSP],
1148 -dst.bytes); 1148 -dst.bytes);
1149 if ((rc = ops->write_std( 1149 if ((rc = ops->write_emulated(
1150 register_address(ctxt->ss_base, 1150 register_address(ctxt->ss_base,
1151 _regs[VCPU_REGS_RSP]), 1151 _regs[VCPU_REGS_RSP]),
1152 &dst.val, dst.bytes, ctxt->vcpu)) != 0) 1152 &dst.val, dst.bytes, ctxt->vcpu)) != 0)