]> 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)
commit467d5cc9739af2031b3860d6fc62e5656b4d35ac
tree35f464bc8613cfa34db36afad76e6ea93a283f4a
parent9bf9ddb9c80843e389f0560f9b78094f59805de8
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