]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbe02b9bfbafd8b39fb2a0720ca9b59b74947b35b
treea49618b33c66b0ded13167ba6f01bc7af8f7ea35
parenta31ee5c660dd69d6fed6c688a6e12abe62ad7d09
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