[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/9] i386/cpu: Set topology info in 0x80000008.ECX only for AMD C
From: |
Xiaoyao Li |
Subject: |
[PATCH 6/9] i386/cpu: Set topology info in 0x80000008.ECX only for AMD CPUs |
Date: |
Wed, 14 Aug 2024 03:54:28 -0400 |
The whole ECX of CPUID 0x80000008 is reserved for Intel.
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
---
target/i386/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 5bee84333089..7a4835289760 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -6944,7 +6944,7 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index,
uint32_t count,
*eax |= (cpu->guest_phys_bits << 16);
}
*ebx = env->features[FEAT_8000_0008_EBX];
- if (threads_per_pkg > 1) {
+ if (threads_per_pkg > 1 && IS_AMD_CPU(env)) {
/*
* Bits 15:12 is "The number of bits in the initial
* Core::X86::Apic::ApicId[ApicId] value that indicate
--
2.34.1
- [PATCH 0/9] Misc patches for x86 CPUID, Xiaoyao Li, 2024/08/14
- [PATCH 1/9] i386/cpu: Don't construct a all-zero entry for CPUID[0xD 0x3f], Xiaoyao Li, 2024/08/14
- [PATCH 2/9] i386/cpu: Enable fdp-excptn-only and zero-fcs-fds, Xiaoyao Li, 2024/08/14
- [PATCH 3/9] i386/cpu: Add support for bits in CPUID.7_2.EDX, Xiaoyao Li, 2024/08/14
- [PATCH 7/9] i386/cpu: Suppress CPUID values not defined by Intel, Xiaoyao Li, 2024/08/14
- [PATCH 5/9] i386/cpu: Construct CPUID 2 as stateful iff times > 1, Xiaoyao Li, 2024/08/14
- [PATCH 9/9] i386/cpu: Make invtsc migratable when user sets tsc-khz explicitly, Xiaoyao Li, 2024/08/14
- [PATCH 4/9] i386/cpu: Construct valid CPUID leaf 5 iff CPUID_EXT_MONITOR, Xiaoyao Li, 2024/08/14
- [PATCH 6/9] i386/cpu: Set topology info in 0x80000008.ECX only for AMD CPUs,
Xiaoyao Li <=
- [PATCH 8/9] i386/cpu: Drop AMD alias bits in FEAT_8000_0001_EDX for non-AMD guests, Xiaoyao Li, 2024/08/14