]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
KVM: x86 emulator: Use emulator_write_emulated and not emulator_write_std
authorAmit Shah <amit.shah@qumranet.com>
Sun, 2 Dec 2007 11:18:42 +0000 (13:18 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Dec 2007 17:50:56 +0000 (09:50 -0800)
patch 00b2ef475d4728ca53a2bc788c7978042907e354 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: Amit Shah <amit.shah@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/kvm/x86_emulate.c

index 14ad4b421c0ff82fb36c7412189067e595beca71..9fce95b56e89d62ce034f7119b97e1558f95ece0 100644 (file)
@@ -1066,7 +1066,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)) != 0)