]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: Drop redundant checks on vmcs12 in EPTP switching emulation
authorSean Christopherson <seanjc@google.com>
Wed, 9 Jun 2021 23:42:35 +0000 (16:42 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:54 +0000 (13:09 -0400)
commit9c5118d3605ccec7a4f553f3b6155cd52a223285
tree52701249eb9934062262bd24aa28c2d82e5fa5e9
parent52f3cac71ec2098bb68d849d761f8315a8984aa9
KVM: nVMX: Drop redundant checks on vmcs12 in EPTP switching emulation

Drop the explicit check on EPTP switching being enabled.  The EPTP
switching check is handled in the generic VMFUNC function check, while
the underlying VMFUNC enablement check is done by hardware and redone
by generic VMFUNC emulation.

The vmcs12 EPT check is handled by KVM at VM-Enter in the form of a
consistency check, keep it but add a WARN.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210609234235.1244004-16-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c