]> git.ipfire.org Git - thirdparty/qemu.git/commit
i386/tdx: Add TDX fixed1 bits to supported CPUIDs
authorXiaoyao Li <xiaoyao.li@intel.com>
Thu, 8 May 2025 14:59:51 +0000 (10:59 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 28 May 2025 17:35:54 +0000 (19:35 +0200)
commit0ba06e46d09b84a2cb97a268da5576aaca3a24ca
treedb9f3117fa343a0f04c57da7b97717bd4c7cfed4
parent75ec6189f5c65cab210dd9f16cf4eef368038d45
i386/tdx: Add TDX fixed1 bits to supported CPUIDs

TDX architecture forcibly sets some CPUID bits for TD guest that VMM
cannot disable it. They are fixed1 bits.

Fixed1 bits are not covered by tdx_caps.cpuid (which only contains the
directly configurable bits), while fixed1 bits are supported for TD guest
obviously.

Add fixed1 bits to tdx_supported_cpuid. Besides, set all the fixed1
bits to the initial set of KVM's support since KVM might not report them
as supported.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250508150002.689633-46-xiaoyao.li@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.h
target/i386/kvm/kvm_i386.h
target/i386/kvm/tdx.c
target/i386/sev.c