Re: [PATCH 1/7] KVM: TDX: Add a place holder to handle TDX VM exit

Paolo Bonzini
2025-01-22T12:50:44Z

On Sun, Dec 1, 2024 at 4:52 AM Binbin Wu <binbin.wu@linux.intel.com> wrote:
>
> From: Isaku Yamahata <isaku.yamahata@intel.com>
>
> Introduce the wiring for handling TDX VM exits by implementing the
> callbacks .get_exit_info(), and .handle_exit().

Linux 6.14 adds get_entry_info. For lack of a better place, I added it
in this patch when rebasing kvm-coco-queue:

static void vt_get_entry_info(struct kvm_vcpu *vcpu, u32 *intr_info, u32 *error_code)
{
*intr_info = 0;
*error_code = 0;

if (is_td_vcpu(vcpu))
return;

vmx_get_entry_info(vcpu, intr_info, error_code);
}

Thanks,

Paolo