aboutsummaryrefslogtreecommitdiff
path: root/scripts/rust/rustc_args.py
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2025-07-14 16:08:59 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2025-07-14 10:29:17 +0200
commit5d21ee453ad8e3f95f75e542cb3b35c5bb7cf23a (patch)
tree6bbeb911a9537ca1313c8f9e75f00d57fd3a4c0a /scripts/rust/rustc_args.py
parent3e86124e7cb9b66e07fb992667865a308f16fcf2 (diff)
downloadqemu-5d21ee453ad8e3f95f75e542cb3b35c5bb7cf23a.zip
qemu-5d21ee453ad8e3f95f75e542cb3b35c5bb7cf23a.tar.gz
qemu-5d21ee453ad8e3f95f75e542cb3b35c5bb7cf23a.tar.bz2
i386/cpu: Honor maximum value for CPUID.8000001DH.EAX[25:14]
CPUID.8000001DH:EAX[25:14] is "NumSharingCache", and the number of logical processors sharing this cache is the value of this field incremented by 1. Because of its width limitation, the maximum value currently supported is 4095. Though at present Q35 supports up to 4096 CPUs, by constructing a specific topology, the width of the APIC ID can be extended beyond 12 bits. For example, using `-smp threads=33,cores=9,modules=9` results in a die level offset of 6 + 4 + 4 = 14 bits, which can also cause overflow. Check and honor the maximum value as CPUID.04H did. Cc: Babu Moger <babu.moger@amd.com> Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250714080859.1960104-8-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/rust/rustc_args.py')
0 files changed, 0 insertions, 0 deletions