Re: [PATCH 1/7] KVM: TDX: Add a place holder to handle TDX VM exit
From: Paolo Bonzini
Date: Wed Jan 22 2025 - 07:51:09 EST
On Sun, Dec 1, 2024 at 4:52 AM Binbin Wu <binbin.wu@xxxxxxxxxxxxxxx> wrote:
From: Isaku Yamahata <isaku.yamahata@xxxxxxxxx>
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