]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Check if INTEL Trust Domain Extention support is enabled
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Thu, 10 Jul 2025 07:21:04 +0000 (03:21 -0400)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 25 Jul 2025 10:27:47 +0000 (11:27 +0100)
commitd7c96e809d2c446830930790db5206168aedef81
tree0c2dd0f4d174c702e35fa8934d53081418138cac
parent908bb55724837e66778e6a2c264c9e92b51d7eb6
qemu: Check if INTEL Trust Domain Extention support is enabled

Implement TDX check in order to generate domain feature capability
correctly in case the availability of the feature changed.

For INTEL TDX the verification is:
 - checking if "/sys/module/kvm_intel/parameters/tdx" contains the
   value 'Y': meaning TDX is enabled in the host kernel.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
src/qemu/qemu_capabilities.c