]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit207b1bcdeb7a0a8dd91b96b2bc21d31d087107fa
tree6dd263059ef5a8f5ea82da1ea0a6880f941f7915
parentb386e19babde6a92bbc52fddcd7ce6cac37ed426
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