KVM: VMX: Handle mmio emulation when guest state is invalid
authorGuillaume Thouvenin <guillaume.thouvenin@ext.bull.net>
Wed, 29 Oct 2008 08:39:42 +0000 (09:39 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:51:48 +0000 (16:51 +0200)
commit1d5a4d9b92028d9fe77da34037bd5a1ebfecc733
tree5e8725c9af5b206f49936a327f116eec858b6bd9
parente93f36bcfaa9e899c595e1c446c784a69021854a
KVM: VMX: Handle mmio emulation when guest state is invalid

If emulate_invalid_guest_state is enabled, the emulator is called
when guest state is invalid.  Until now, we reported an mmio failure
when emulate_instruction() returned EMULATE_DO_MMIO.  This patch adds
the case where emulate_instruction() failed and an MMIO emulation
is needed.

Signed-off-by: Guillaume Thouvenin <guillaume.thouvenin@ext.bull.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/vmx.c