]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Properly return error to userspace on vmentry failure
authorMohammed Gamal <m.gamal005@gmail.com>
Mon, 31 May 2010 19:40:54 +0000 (22:40 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:39:24 +0000 (10:39 +0300)
commit8711f3cb8c5826f73edd103b7def7608221ef7a5
tree0294b9e9c71a504d30e50e539e9bb1661e7ac762
parentfcb236dac3f7437c9889f14f74ac6b2d12c85918
KVM: VMX: Properly return error to userspace on vmentry failure

The vmexit handler returns KVM_EXIT_UNKNOWN since there is no handler
for vmentry failures. This intercepts vmentry failures and returns
KVM_FAIL_ENTRY to userspace instead.

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