Re: [PATCH v3 3/8] KVM: VMX: Move the shared NMI handler/trampoline to common code

From: Binbin Wu

Date: Thu Sep 03 2026 - 22:31:47 EST


On 9/4/2026 9:03 AM, Sean Christopherson wrote:
> Move vmx_handle_nmi() to main.c to capture that it's a common handler and
> to allow guarding against incorrectly using to_vmx().
>
> Opportunistically use a "vt" prefix instead of "vmx" to communicate that
> it's a shared handler.
>
> No functional change intended.
>
> Reviewed-by: Xiaoyao Li <xiaoyao.li@xxxxxxxxx>
> Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>
> Tested-by: Kai Huang <kai.huang@xxxxxxxxx>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>

Reviewed-by: Binbin Wu <binbin.wu@xxxxxxxxxxxxxxx>