Re: [RFC PATCH v1 5/5] KVM: Remove kvm_rebooting and its references

From: Sean Christopherson

Date: Tue Sep 16 2025 - 13:56:57 EST


On Tue, Sep 09, 2025, Xin Li (Intel) wrote:
> Drop kvm_rebooting and all related uses. Virtualization is now disabled
> immediately before a CPU shuts down, eliminating any chance of executing
> virtualization instructions during reboot.

Wrong. KVM clears EFER.SVME in reponse to kvm_shutdown(), and thus can trip
#UDs on e.g. VMRUN.