[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/9] i386/cpu: Add support for bits in CPUID.7_2.EDX
From: |
Xiaoyao Li |
Subject: |
[PATCH 3/9] i386/cpu: Add support for bits in CPUID.7_2.EDX |
Date: |
Wed, 14 Aug 2024 03:54:25 -0400 |
KVM started to report the support of bit 0-5 since commit eefe5e668209
("Advertise CPUID.(EAX=7,ECX=2):EDX[5:0] to userspace")
Allow them to be exposed to guest in QEMU.
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
---
target/i386/cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index e60d9dd58b60..03376ccf3e75 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -1148,8 +1148,8 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
[FEAT_7_2_EDX] = {
.type = CPUID_FEATURE_WORD,
.feat_names = {
- NULL, NULL, NULL, NULL,
- NULL, "mcdt-no", NULL, NULL,
+ "psfd", "ipred-ctrl", "rrsba-ctrl", "ddpd-u",
+ "bhi-ctrl", "mcdt-no", NULL, NULL,
NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
--
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 <=
- [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, 2024/08/14
- [PATCH 8/9] i386/cpu: Drop AMD alias bits in FEAT_8000_0001_EDX for non-AMD guests, Xiaoyao Li, 2024/08/14