[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 8/8] i386/cpu: Adjust level for RDT on full_cpuid_auto_level
From: |
Hendrik Wuethrich |
Subject: |
[PATCH v3 8/8] i386/cpu: Adjust level for RDT on full_cpuid_auto_level |
Date: |
Wed, 4 Dec 2024 08:48:37 +0000 |
From: Hendrik Wüthrich <whendrik@google.com>
Make sure that RDT monitoring and allocation features are included in
in full_cpuid_auto_level.
Signed-off-by: Hendrik Wüthrich <whendrik@google.com>
---
target/i386/cpu.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index a400839216..787bb5ba92 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -875,6 +875,7 @@ void x86_cpu_vendor_words2str(char *dst, uint32_t vendor1,
#else
#define TCG_7_0_ECX_RDPID 0
#endif
+
#define TCG_7_0_ECX_FEATURES (CPUID_7_0_ECX_UMIP | CPUID_7_0_ECX_PKU | \
/* CPUID_7_0_ECX_OSPKE is dynamic */ \
CPUID_7_0_ECX_LA57 | CPUID_7_0_ECX_PKS | CPUID_7_0_ECX_VAES | \
@@ -7526,6 +7527,8 @@ void x86_cpu_expand_features(X86CPU *cpu, Error **errp)
x86_cpu_adjust_feat_level(cpu, FEAT_C000_0001_EDX);
x86_cpu_adjust_feat_level(cpu, FEAT_SVM);
x86_cpu_adjust_feat_level(cpu, FEAT_XSAVE);
+ x86_cpu_adjust_feat_level(cpu, FEAT_RDT_15_0_EDX);
+ x86_cpu_adjust_feat_level(cpu, FEAT_RDT_10_0_EBX);
/* Intel Processor Trace requires CPUID[0x14] */
if ((env->features[FEAT_7_0_EBX] & CPUID_7_0_EBX_INTEL_PT)) {
--
2.47.0.338.g60cca15819-goog
- [PATCH v3 0/8] The aim of this patch series is to emulate Intel RDT features in order to make testing of the linux Resctrl subsystem possible with Qemu., Hendrik Wuethrich, 2024/12/04
- [PATCH v3 1/8] i386: Add Intel RDT device and State to config., Hendrik Wuethrich, 2024/12/04
- [PATCH v3 2/8] i386: Add init and realize funciontality for RDT device., Hendrik Wuethrich, 2024/12/04
- [PATCH v3 3/8] i386: Add RDT functionality, Hendrik Wuethrich, 2024/12/04
- [PATCH v3 4/8] i386: Add RDT device interface through MSRs, Hendrik Wuethrich, 2024/12/04
- [PATCH v3 6/8] i386: Add RDT feature flags., Hendrik Wuethrich, 2024/12/04
- [PATCH v3 5/8] i386: Add CPUID enumeration for RDT, Hendrik Wuethrich, 2024/12/04
- [PATCH v3 7/8] i386/cpu: Adjust CPUID level for RDT features, Hendrik Wuethrich, 2024/12/04
- [PATCH v3 8/8] i386/cpu: Adjust level for RDT on full_cpuid_auto_level,
Hendrik Wuethrich <=