KVM: VMX: Enhance invalid guest state emulation
authorMohammed Gamal <m.gamal005@gmail.com>
Tue, 1 Sep 2009 10:48:18 +0000 (12:48 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:09 +0000 (09:32 +0200)
commit80ced186d1761d2a66163d9eeb468ddb1f7e0697
tree6dd263059ef5a8f5ea82da1ea0a6880f941f7915
parentabcf14b560a4ba62c659e6f5aafc8f9934d8c130
KVM: VMX: Enhance invalid guest state emulation

- Change returned handle_invalid_guest_state() to return relevant exit codes
- Move triggering the emulation from vmx_vcpu_run() to vmx_handle_exit()
- Return to userspace instead of repeatedly trying to emulate instructions that have already failed

Signed-off-by: Mohammed Gamal <m.gamal005@gmail.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c