KVM: eVMCS: check if nesting is enabled
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 17 Apr 2020 14:34:29 +0000 (10:34 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 23 Apr 2020 13:04:56 +0000 (09:04 -0400)
commit25091990ef289a5962b5bddd8c68de3f691c9e3c
treea49618b33c66b0ded13167ba6f01bc7af8f7ea35
parent56083bdf67c78030f11cdaed5b2b54959a329b02
KVM: eVMCS: check if nesting is enabled

In the next patch nested_get_evmcs_version will be always set in kvm_x86_ops for
VMX, even if nesting is disabled.  Therefore, check whether VMX (aka nesting)
is available in the function, the caller will not do the check anymore.

Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/evmcs.c