Skip to content
Commit 119b5cb4 authored by Sean Christopherson's avatar Sean Christopherson
Browse files

x86/reboot: KVM: Handle VMXOFF in KVM's reboot callback



Use KVM VMX's reboot/crash callback to do VMXOFF in an emergency instead
of manually and blindly doing VMXOFF.  There's no need to attempt VMXOFF
if a hypervisor, i.e. KVM, isn't loaded/active, i.e. if the CPU can't
possibly be post-VMXON.

Reviewed-by: default avatarKai Huang <kai.huang@intel.com>
Link: https://lore.kernel.org/r/20230721201859.2307736-4-seanjc@google.com
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 5e408396
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment