[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/5] target/i386: ignore ARCH_CAPABILITIES features in user mode e
From: |
Paolo Bonzini |
Subject: |
[PULL 3/5] target/i386: ignore ARCH_CAPABILITIES features in user mode emulation |
Date: |
Thu, 29 Jun 2023 12:19:16 +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 | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index b96a609d966..328779874f2 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -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,
--
2.41.0
- [PULL 0/5] x86, main loop changes for 2023-06-29, Paolo Bonzini, 2023/06/29
- [PULL 1/5] icount: don't adjust virtual time backwards after warp, Paolo Bonzini, 2023/06/29
- [PULL 2/5] target/i386: Export MSR_ARCH_CAPABILITIES bits to guests, Paolo Bonzini, 2023/06/29
- [PULL 3/5] target/i386: ignore ARCH_CAPABILITIES features in user mode emulation,
Paolo Bonzini <=
- [PULL 4/5] target/i386: ignore CPL0-specific features in user mode emulation, Paolo Bonzini, 2023/06/29
- [PULL 5/5] target/i386: emulate 64-bit ring 0 for linux-user if LM feature is set, Paolo Bonzini, 2023/06/29
- Re: [PULL 0/5] x86, main loop changes for 2023-06-29, Richard Henderson, 2023/06/29