KVM: TDX: Report supported optional TDVMCALLs in TDX capabilities
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Jun 2025 18:20:20 +0000 (14:20 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Jun 2025 18:20:20 +0000 (14:20 -0400)
commit28224ef02b56fceee2c161fe2a49a0bb197e44f5
treec433932939a74aa3f28a873367fb2f510e8d8b5e
parent4580dbef5ce0f95a4bd8ac2d007bc4fbf1539332
KVM: TDX: Report supported optional TDVMCALLs in TDX capabilities

Allow userspace to advertise TDG.VP.VMCALL subfunctions that the
kernel also supports.  For each output register of GetTdVmCallInfo's
leaf 1, add two fields to KVM_TDX_CAPABILITIES: one for kernel-supported
TDVMCALLs (userspace can set those blindly) and one for user-supported
TDVMCALLs (userspace can set those if it knows how to handle them).

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Documentation/virt/kvm/x86/intel-tdx.rst
arch/x86/include/uapi/asm/kvm.h
arch/x86/kvm/vmx/tdx.c