diff options
| author | Xiaoyao Li <xiaoyao.li@intel.com> | 2025-05-08 10:59:11 -0400 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-28 19:01:40 +0200 |
| commit | 8eddedc3701d2190db976a05155a8263c8ec175b (patch) | |
| tree | b2066c0e550efa10698ac6b9d522a9074dde0ac4 /accel/kvm/kvm-all.c | |
| parent | 631a2ac5a4beab740b342367550562cd659b4c4a (diff) | |
| download | focaccia-qemu-8eddedc3701d2190db976a05155a8263c8ec175b.tar.gz focaccia-qemu-8eddedc3701d2190db976a05155a8263c8ec175b.zip | |
i386/tdx: Get tdx_capabilities via KVM_TDX_CAPABILITIES
KVM provides TDX capabilities via sub command KVM_TDX_CAPABILITIES of IOCTL(KVM_MEMORY_ENCRYPT_OP). Get the capabilities when initializing TDX context. It will be used to validate user's setting later. Since there is no interface reporting how many cpuid configs contains in KVM_TDX_CAPABILITIES, QEMU chooses to try starting with a known number and abort when it exceeds KVM_MAX_CPUID_ENTRIES. Besides, introduce the interfaces to invoke TDX "ioctls" at VCPU scope in preparation. Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com> Link: https://lore.kernel.org/r/20250508150002.689633-6-xiaoyao.li@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'accel/kvm/kvm-all.c')
0 files changed, 0 insertions, 0 deletions