Sean Christopherson a2b07fa7b9 x86/reboot: Disable SVM, not just VMX, when stopping CPUs
Disable SVM and more importantly force GIF=1 when halting a CPU or
rebooting the machine.  Similar to VMX, SVM allows software to block
INITs via CLGI, and thus can be problematic for a crash/reboot.  The
window for failure is smaller with SVM as INIT is only blocked while
GIF=0, i.e. between CLGI and STGI, but the window does exist.

Fixes: fba4f472b33a ("x86/reboot: Turn off KVM when halting a CPU")
Cc: stable@vger.kernel.org
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20221130233650.1404148-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
2023-01-24 10:05:22 -08:00
..
2022-12-12 14:41:57 -08:00
2022-12-17 14:06:53 -06:00
2022-03-15 10:32:40 +01:00
2022-11-21 23:01:51 +01:00
2022-09-26 10:13:16 -07:00
2022-04-19 17:14:09 -07:00
2022-12-17 14:06:53 -06:00
2022-12-02 14:06:34 +01:00
2022-04-07 08:27:51 -07:00
2022-08-02 15:21:18 -07:00
2022-12-15 11:12:21 -08:00
2021-12-01 00:06:43 +01:00
2022-12-10 10:33:11 -06:00
2022-02-25 09:36:05 +01:00
2022-09-26 19:46:16 -07:00
2021-10-25 23:02:36 -04:00
2022-11-21 23:01:51 +01:00
2022-04-14 14:09:43 +02:00
2022-11-01 13:44:10 +01:00