]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Don't bother disabling eVMCS static key on module exit
authorSean Christopherson <seanjc@google.com>
Wed, 30 Nov 2022 23:08:55 +0000 (23:08 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:50:17 +0000 (08:50 +0100)
commitb3fc7ea5e1901e7648f9036d557dfd010b59db8a
tree1475d70b04a28813778da950da01eb106335cdbf
parentd63f5c4802099265d046b988c4fcc6466aa39cc9
KVM: VMX: Don't bother disabling eVMCS static key on module exit

[ Upstream commit 1a27b828a955a0b8fec25748df68b879403d67c3 ]

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: 3c3b35a745e3 ("KVM: VMX: Do _all_ initialization before exposing /dev/kvm to userspace")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/vmx/vmx.c