]> git.baikalelectronics.ru Git - kernel.git/commit
x86/reboot: Force all cpus to exit VMX root if VMX is supported
authorSean Christopherson <seanjc@google.com>
Thu, 31 Dec 2020 00:26:55 +0000 (16:26 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:31 +0000 (05:27 -0500)
commit36c1906aacc70804a850a7e437a9dd8183fc09b9
tree384fa77cb24ef0cfc9264946e83d459d59249de5
parent59e5834b11b46c28347fd78ab2137630598211cc
x86/reboot: Force all cpus to exit VMX root if VMX is supported

Force all CPUs to do VMXOFF (via NMI shootdown) during an emergency
reboot if VMX is _supported_, as VMX being off on the current CPU does
not prevent other CPUs from being in VMX root (post-VMXON).  This fixes
a bug where a crash/panic reboot could leave other CPUs in VMX root and
prevent them from being woken via INIT-SIPI-SIPI in the new kernel.

Fixes: a14a5f907a5b ("x86: disable VMX on all CPUs on reboot")
Cc: stable@vger.kernel.org
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: David P. Reed <dpreed@deepplum.com>
[sean: reworked changelog and further tweaked comment]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20201231002702.2223707-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kernel/reboot.c