Commit e124b024 authored by Amit Shah's avatar Amit Shah Committed by Greg Kroah-Hartman

KVM: x86 emulator: Use emulator_write_emulated and not emulator_write_std

patch 00b2ef47 in mainline.

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: default avatarAmit Shah <amit.shah@qumranet.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3945c416
...@@ -1066,7 +1066,7 @@ done_prefixes: ...@@ -1066,7 +1066,7 @@ done_prefixes:
} }
register_address_increment(_regs[VCPU_REGS_RSP], register_address_increment(_regs[VCPU_REGS_RSP],
-dst.bytes); -dst.bytes);
if ((rc = ops->write_std( if ((rc = ops->write_emulated(
register_address(ctxt->ss_base, register_address(ctxt->ss_base,
_regs[VCPU_REGS_RSP]), _regs[VCPU_REGS_RSP]),
&dst.val, dst.bytes, ctxt)) != 0) &dst.val, dst.bytes, ctxt)) != 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment