Re: [PATCH v4 03/19] x86/reboot: KVM: Handle VMXOFF in KVM's reboot callback

From: Huang, Kai
Date: Mon Jul 24 2023 - 19:57:12 EST


On Fri, 2023-07-21 at 13:18 -0700, Sean Christopherson wrote:
> 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.
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
>

Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>