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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:40:01 +0000 (09:40 +0100)
commit5427c3cee7896803c67e7a5caaf8d8aa53115759
treefac77535f73a9f5077e5610291d4749d97299d45
parent1e3edbabf57a76d3a04dbbec09ad01b7415f86e6
x86/reboot: Disable virtualization in an emergency if SVM is supported

commit d81f952aa657b76cea381384bef1fea35c5fd266 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/reboot.c