mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
KVM: VMX: Don't bother disabling eVMCS static key on module exit
[ Upstream commitda66de44b0] Don't disable the eVMCS static key on module exit, kvm_intel.ko owns the key so there can't possibly be users after the kvm_intel.ko is unloaded, at least not without much bigger issues. Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20221130230934.1014142-12-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Stable-dep-of:e32b120071("KVM: VMX: Do _all_ initialization before exposing /dev/kvm to userspace") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
afb26bfc01
commit
5daa32be8c
@@ -8465,10 +8465,6 @@ static void vmx_exit(void)
|
||||
|
||||
kvm_exit();
|
||||
|
||||
#if IS_ENABLED(CONFIG_HYPERV)
|
||||
if (static_branch_unlikely(&enable_evmcs))
|
||||
static_branch_disable(&enable_evmcs);
|
||||
#endif
|
||||
vmx_cleanup_l1d_flush();
|
||||
|
||||
allow_smaller_maxphyaddr = false;
|
||||
|
||||
Reference in New Issue
Block a user