target/i386: add sha512, sm3, sm4 feature bits
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 3 Jul 2024 11:42:49 +0000 (13:42 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 Nov 2024 15:54:01 +0000 (16:54 +0100)
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/20241105054825.870939-1-tao1.su@linux.intel.com/
for reference.

Reviewed-by: Tao Su <tao1.su@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c

index 58c96eafea9c048c1e0fc485b2be6d789657afba..3725dbbc4b3f6396426992854f7a345a883abcb4 100644 (file)
@@ -1116,7 +1116,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,