]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commitdiff
target/i386: ignore ARCH_CAPABILITIES features in user mode emulation
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Jun 2023 23:13:34 +0000 (01:13 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Jun 2023 08:49:43 +0000 (10:49 +0200)
ARCH_CAPABILITIES is only accessible through a read-only MSR, so it has
no impact on any user-mode operation (user-mode cannot read the MSR).
So do not bother printing warnings about it in user mode emulation.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c

index b96a609d9664ea7024f14b738277eb6be795e4b1..328779874f21304aa00ca99133a053f2bb8cef4d 100644 (file)
@@ -1069,6 +1069,13 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
         .msr = {
             .index = MSR_IA32_ARCH_CAPABILITIES,
         },
+        /*
+         * FEAT_ARCH_CAPABILITIES only affects a read-only MSR, which
+         * cannot be read from user mode.  Therefore, it has no impact
+         > on any user-mode operation, and warnings about unsupported
+         * features do not matter.
+         */
+        .tcg_features = ~0U,
     },
     [FEAT_CORE_CAPABILITY] = {
         .type = MSR_FEATURE_WORD,