]> git.ipfire.org Git - thirdparty/qemu.git/commit
i386/tdx: Add supported CPUID bits relates to XFAM
authorXiaoyao Li <xiaoyao.li@intel.com>
Thu, 8 May 2025 14:59:53 +0000 (10:59 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 28 May 2025 17:35:54 +0000 (19:35 +0200)
commit8c94c84cb9e0140b48acc9c9d404525ca7ef7457
tree10b70720565a867d216175983296ca072ef5e4cd
parent31df29c532a9ef473c6efd497950a620099bf1da
i386/tdx: Add supported CPUID bits relates to XFAM

Some CPUID bits are controlled by XFAM. They are not covered by
tdx_caps.cpuid (which only contians the directly configurable bits), but
they are actually supported when the related XFAM bit is supported.

Add these XFAM controlled bits to TDX supported CPUID bits based on the
supported_xfam.

Besides, incorporate the supported_xfam into the supported CPUID leaf of
0xD.

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://lore.kernel.org/r/20250508150002.689633-48-xiaoyao.li@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/cpu.h
target/i386/kvm/tdx.c