Re: [RFC PATCH 3/4] KVM: TDX: Exit to userspace for GetTdVmCallInfo

From: Xiaoyao Li
Date: Wed Jun 11 2025 - 10:35:23 EST


On 6/11/2025 10:17 PM, Edgecombe, Rick P wrote:
On Wed, 2025-06-11 at 10:37 +0800, Xiaoyao Li wrote:
Maybe we can use a TDX specific opt-in interface instead of TDVMCALL
specific
interface.
But not sure we should add it now or later.

For simplicity, I prefer separate opt-in interfaces, it makes code simpler.

What is the problem with using the existing exit opt-in interface?

It mixes up common KVM defined hypercall leafs (KVM_HC_*) with TDX specific TDVMCALL leafs. Surely it can work but it just doesn't look clean to me.