]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9cb2ad8b0d4a92e5e587915f31c14ec6677d93ff
tree35f464bc8613cfa34db36afad76e6ea93a283f4a
parent311f70f0b7c8a8844cd5c54bc857c0a5c7eb5025
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