]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: fix kvm_fix_hypercall() to return X86EMUL_*
authorTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Mon, 1 Feb 2010 13:11:52 +0000 (22:11 +0900)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:07 +0000 (12:36 -0300)
commit763cb13a47ec4e84143a4a96a4e13fb4ca04dfdb
tree16eb7ac62136c21e6990e95087cda681dca1f8df
parentae4f181cb4c14f7ad5d8a8e22c6fa0c76ec6ae1c
KVM: fix kvm_fix_hypercall() to return X86EMUL_*

This patch fixes kvm_fix_hypercall() to propagate X86EMUL_*
info generated by emulator_write_emulated() to its callers:
suggested by Marcelo.

The effect of this is x86_emulate_insn() will begin to handle
the page faults which occur in emulator_write_emulated():
this should be OK because emulator_write_emulated_onepage()
always injects page fault when emulator_write_emulated()
returns X86EMUL_PROPAGATE_FAULT.

Signed-off-by: Takuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/x86.c