Re: [PATCH v2 1/8] KVM: VMX: Move the shared "IRQs off" exit handler(s) to common code

From: Xiaoyao Li

Date: Thu Aug 27 2026 - 06:49:14 EST


On 8/27/2026 1:12 AM, Sean Christopherson wrote:
Move vmx_handle_exit_irqoff() and its helpers to common.h / main.c to
capture that it's a common handler and

to allow guarding against incorrectly using to_vmx().

For this purpose, it seems better to put patch 3 as the first patch?
Opportunistically use a "vt" prefix instead of "vmx" to communicate that
it's a shared handler.

No functional change intended.

Cc: Rick Edgecombe <rick.p.edgecombe@xxxxxxxxx>
Cc: Xiaoyao Li <xiaoyao.li@xxxxxxxxx>
Cc: Binbin Wu <binbin.wu@xxxxxxxxxxxxxxx>
Cc: Kai Huang <kai.huang@xxxxxxxxx>
Cc: Yan Zhao <yan.y.zhao@xxxxxxxxx>
Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
Reviewed-by: Xiaoyao Li <xiaoyao.li@xxxxxxxxx>