KVM: nVMX: move host EFER consistency checks to VMFail path
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 26 Sep 2018 16:23:39 +0000 (09:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:29:49 +0000 (00:29 +0200)
commit64a919f7b5d0593227d0ea7976949c1248ec36ba
tree4b911e6803322f9468ea47e907e82c2fc86764b2
parent31fc4f95dddc4ebc9f9596a2720662e15e5d444e
KVM: nVMX: move host EFER consistency checks to VMFail path

Invalid host state related to loading EFER on VMExit causes a
VMFail(VMXERR_ENTRY_INVALID_HOST_STATE_FIELD), not a VMExit.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c