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

Sean Christopherson
2025-09-16T17:56:36Z

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.