]> git.ipfire.org Git - thirdparty/qemu.git/commit
i386/tdx: Validate phys_bits against host value
authorXiaoyao Li <xiaoyao.li@intel.com>
Thu, 8 May 2025 15:00:00 +0000 (11:00 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 28 May 2025 17:35:55 +0000 (19:35 +0200)
commit907ee7b67e50a7eea2768c66e3ad67c9aa4ffd3c
tree6e21e28644435aaa69852043c49a56bc32db0194
parentea4867b911fc2f6d4c8bd50ec62f0dc0fa190fab
i386/tdx: Validate phys_bits against host value

For TDX guest, the phys_bits is not configurable and can only be
host/native value.

Validate phys_bits inside tdx_check_features().

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250508150002.689633-55-xiaoyao.li@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/host-cpu.c
target/i386/host-cpu.h
target/i386/kvm/tdx.c