Skip to contentSkip to conversation

i386/cpu: Remove AVX_VNNI feature from Cooperlake cpu model

PATCH Applied Yang Zhong 2 participants 2 messages Aug 20, 2021

lore
Share & tools
lore

Yang Zhong

author
#0 lore raw

PATCH 1/1 i386/cpu: Remove AVX_VNNI feature from Cooperlake cpu model

The AVX_VNNI feature is not in Cooperlake platform, remove it from cpu model.

---
 target/i386/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/cpu.c +1 -1
index 34a7ce865b..24ddc5b926 100644
@@ -3102,7 +3102,7 @@ static const X86CPUDefinition builtin_x86_defs[] = {
             MSR_ARCH_CAP_SKIP_L1DFL_VMENTRY | MSR_ARCH_CAP_MDS_NO |
             MSR_ARCH_CAP_PSCHANGE_MC_NO | MSR_ARCH_CAP_TAA_NO,
         .features[FEAT_7_1_EAX] =
-            CPUID_7_1_EAX_AVX_VNNI | CPUID_7_1_EAX_AVX512_BF16,
+            CPUID_7_1_EAX_AVX512_BF16,
         /* XSAVES is added in version 2 */
         .features[FEAT_XSAVE] =
             CPUID_XSAVE_XSAVEOPT | CPUID_XSAVE_XSAVEC |
#1 lore raw
Quoted 4 lines · Yang Zhong

The AVX_VNNI feature is not in Cooperlake platform, remove it from cpu model.

Fixes c1826ea6a052 ("i386/cpu: Expose AVX_VNNI instruction to guest")

Queued, thanks!

Signature · 1 line
Eduardo