Skip to contentSkip to conversation

target/i386: add avx-vnni-int16 feature

PATCH In review Paolo Bonzini 2 participants 3 messages Nov 5, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target/i386: add avx-vnni-int16 feature

SHA512, SM3, SM4 (CPUID[EAX=7,ECX=1).EAX bits 0 to 2) is supported by Clearwater Forest processor, add it to QEMU as it does not need any specific enablement.

See https://lore.kernel.org/kvm/[email protected]/
for reference.

---
 target/i386/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/cpu.c +1 -1
index 3baa95481fb..ae5b85f4e8e 100644
@@ -1113,7 +1113,7 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
     [FEAT_7_1_EAX] = {
         .type = CPUID_FEATURE_WORD,
         .feat_names = {
-            NULL, NULL, NULL, NULL,
+            "sha512", "sm3", "sm4", NULL,
             "avx-vnni", "avx512-bf16", NULL, "cmpccxadd",
             NULL, NULL, "fzrm", "fsrs",
             "fsrc", NULL, NULL, NULL,
Signature · 1 line
2.47.0
#1 lore raw
Quoted 17 lines · Paolo Bonzini

SHA512, SM3, SM4 (CPUID[EAX=7,ECX=1).EAX bits 0 to 2) is supported by Clearwater Forest processor, add it to QEMU as it does not need any specific enablement.

See https://lore.kernel.org/kvm/[email protected]/
for reference.

---
  target/i386/cpu.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
target/i386/cpu.c +0 -0
index 3baa95481fb..ae5b85f4e8e 100644

target/i386/cpu.c FeatureWordInfo feature_word_info[FEATURE_WORDS] = { · line 1119

Quoted 8 lines
target/i386/cpu.c +1 -1
@@ -1113,7 +1113,7 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
      [FEAT_7_1_EAX] = {
          .type = CPUID_FEATURE_WORD,
          .feat_names = {
-            NULL, NULL, NULL, NULL,
+            "sha512", "sm3", "sm4", NULL,
              "avx-vnni", "avx512-bf16", NULL, "cmpccxadd",
              NULL, NULL, "fzrm", "fsrs",
              "fsrc", NULL, NULL, NULL,

Obviously the subject is wrong, sorry about that.

Paolo