diff options
author | Sean Christopherson <seanjc@google.com> | 2022-12-01 00:08:55 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-12-29 21:40:57 +0100 |
commit | da66de44b01e9b7fa09731057593850394bf32e4 (patch) | |
tree | 4cdf2a81586e287f6f11388fa0fc16f872bdabcc /arch/x86/kvm/vmx/vmx.c | |
parent | KVM: VMX: Reset eVMCS controls in VP assist page during hardware disabling (diff) | |
download | linux-da66de44b01e9b7fa09731057593850394bf32e4.tar.xz linux-da66de44b01e9b7fa09731057593850394bf32e4.zip |
KVM: VMX: Don't bother disabling eVMCS static key on module exit
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>
Diffstat (limited to 'arch/x86/kvm/vmx/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx/vmx.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index a68d1adfd66b..d9139738dd2c 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -8533,10 +8533,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; |