x86/reboot: Disable virtualization in an emergency if SVM is supported
authorSean Christopherson <seanjc@google.com>
Wed, 30 Nov 2022 23:36:49 +0000 (23:36 +0000)
committerSean Christopherson <seanjc@google.com>
Tue, 24 Jan 2023 18:05:22 +0000 (10:05 -0800)
commitd81f952aa657b76cea381384bef1fea35c5fd266
treeade5c7d097da448dbc4c257823880365835220b8
parent6a3236580b0b1accc3976345e723104f74f6f8e6
x86/reboot: Disable virtualization in an emergency if SVM is supported

Disable SVM on all CPUs via NMI shootdown during an emergency reboot.
Like VMX, SVM can block INIT, e.g. if the emergency reboot is triggered
between CLGI and STGI, and thus can prevent bringing up other CPUs via
INIT-SIPI-SIPI.

Cc: stable@vger.kernel.org
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20221130233650.1404148-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kernel/reboot.c