From: Amit Shah Date: Sun, 18 Nov 2007 16:55:40 +0000 (+0530) Subject: KVM: x86 emulator: Use emulator_write_emulated and not emulator_write_std X-Git-Tag: v2.6.24-rc4~86^2~2 X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=00b2ef475d4728ca53a2bc788c7978042907e354;p=~andy%2Flinux 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 Signed-off-by: Avi Kivity --- diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c index 6c1413f9e9c..bd46de6bf89 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)