KVM: nVMX: Wrap VM-Fail valid path in generic VM-Fail helper
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 9 Jun 2020 01:56:07 +0000 (18:56 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jul 2020 20:21:47 +0000 (16:21 -0400)
commitb2656e4d8b29a25ea26ae92d14694904274e63b0
tree35f464bc8613cfa34db36afad76e6ea93a283f4a
parentc967118ddb21191178c0e0080fdc41f5d85ca1d1
KVM: nVMX: Wrap VM-Fail valid path in generic VM-Fail helper

Add nested_vmx_fail() to wrap VM-Fail paths that _may_ result in VM-Fail
Valid to make it clear at the call sites that the Valid flavor isn't
guaranteed.

Suggested-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200609015607.6994-1-sean.j.christopherson@intel.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c