diff options
| author | Sean Christopherson <seanjc@google.com> | 2023-07-21 13:18:44 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2023-08-03 15:37:14 -0700 |
| commit | baeb4de7ad12b700a91f2a7be8e1c0389a5c8fd4 (patch) | |
| tree | e94d52ff9c7211d843c24b93f2cb27072edc5efc /arch/x86/kernel/reboot.c | |
| parent | 119b5cb4ffd0166f3e98e9ee042f5046f7744f28 (diff) | |
| download | linux-baeb4de7ad12b700a91f2a7be8e1c0389a5c8fd4.tar.gz linux-baeb4de7ad12b700a91f2a7be8e1c0389a5c8fd4.tar.bz2 linux-baeb4de7ad12b700a91f2a7be8e1c0389a5c8fd4.zip | |
x86/reboot: KVM: Disable SVM during reboot via virt/KVM reboot callback
Use the virt callback to disable SVM (and set GIF=1) during an emergency
instead of blindly attempting to disable SVM. Like the VMX case, if a
hypervisor, i.e. KVM, isn't loaded/active, SVM can't be in use.
Acked-by: Kai Huang <kai.huang@intel.com>
Link: https://lore.kernel.org/r/20230721201859.2307736-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/x86/kernel/reboot.c')
| -rw-r--r-- | arch/x86/kernel/reboot.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c index d2d0f2672a64..48ad2d1ff83d 100644 --- a/arch/x86/kernel/reboot.c +++ b/arch/x86/kernel/reboot.c @@ -826,9 +826,6 @@ void cpu_emergency_disable_virtualization(void) if (callback) callback(); rcu_read_unlock(); - - /* KVM_AMD doesn't yet utilize the common callback. */ - cpu_emergency_svm_disable(); } #if defined(CONFIG_SMP) |
