]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Sat, 11 Mar 2023 15:44:01 +0000 (16:44 +0100)
commitaa4b3b520727f737a518bc014505aa39f78c52df
treeaaceded59c7eec1c7ca0c28d0a03e3e11b4d971c
parentb8e505373a61a1e39764da8aa5bfa9a53cd0df4d
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