Re: [PATCH v4 9/9] KVM: VMX: Consolidate the exit handler for VMX and TDX

From: Xiaoyao Li

Date: Wed Aug 26 2026 - 06:43:57 EST


On 8/26/2026 6:03 PM, Nikolay Borisov wrote:
@@ -960,7 +978,7 @@ struct kvm_x86_ops vt_x86_ops __initdata = {
      .vcpu_needs_initialization = vt_op_tdx_only(vcpu_needs_initialization),
      .vcpu_run = vt_op(vcpu_run),
-    .handle_exit = vt_op(handle_exit),
+    .handle_exit = vt_handle_exit,

nit: Why isn't this vt_op() for the sake of consistency and introduce needless churn ?

I didn't see how to make vt_op() still work here while dedupping the code. Do you have a better idea?