|
|
77c23f |
From 6f0630299a3edbb8f5e5ac41eb9e1f1c363f1e3e Mon Sep 17 00:00:00 2001
|
|
|
77c23f |
From: Danilo de Paula <ddepaula@redhat.com>
|
|
|
77c23f |
Date: Tue, 9 Jun 2020 18:46:51 +0100
|
|
|
77c23f |
Subject: [PATCH 15/17] target/i386: Add new bit definitions of
|
|
|
77c23f |
MSR_IA32_ARCH_CAPABILITIES
|
|
|
77c23f |
|
|
|
77c23f |
RH-Author: Danilo de Paula <ddepaula@redhat.com>
|
|
|
77c23f |
Message-id: <20200609184651.1328372-1-ddepaula@redhat.com>
|
|
|
77c23f |
Patchwork-id: 97489
|
|
|
77c23f |
O-Subject: [RHEL-AV-8.2.1 qemu-kvm PATCH 5/4] target/i386: Add new bit definitions of MSR_IA32_ARCH_CAPABILITIES
|
|
|
77c23f |
Bugzilla: 1769912
|
|
|
77c23f |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
77c23f |
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
|
|
|
77c23f |
|
|
|
77c23f |
From: Danilo de Paula <ddepaula@redhat.com>
|
|
|
77c23f |
|
|
|
77c23f |
redhat: builds with that series were failing. It complains about a undefined
|
|
|
77c23f |
MSR_ARCH_CAP_TAA_NO.
|
|
|
77c23f |
|
|
|
77c23f |
The bit 6, 7 and 8 of MSR_IA32_ARCH_CAPABILITIES are recently disclosed
|
|
|
77c23f |
for some security issues. Add the definitions for them to be used by named
|
|
|
77c23f |
CPU models.
|
|
|
77c23f |
|
|
|
77c23f |
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
|
|
|
77c23f |
Message-Id: <20191225063018.20038-2-xiaoyao.li@intel.com>
|
|
|
77c23f |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
77c23f |
(cherry picked from commit 6c997b4adb300788d61d72e2b8bc67c03a584956)
|
|
|
77c23f |
|
|
|
77c23f |
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
77c23f |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
77c23f |
---
|
|
|
77c23f |
target/i386/cpu.h | 13 ++++++++-----
|
|
|
77c23f |
1 file changed, 8 insertions(+), 5 deletions(-)
|
|
|
77c23f |
|
|
|
77c23f |
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
|
|
|
77c23f |
index e77d101..7bfbf2a 100644
|
|
|
77c23f |
--- a/target/i386/cpu.h
|
|
|
77c23f |
+++ b/target/i386/cpu.h
|
|
|
77c23f |
@@ -836,12 +836,15 @@ typedef uint64_t FeatureWordArray[FEATURE_WORDS];
|
|
|
77c23f |
#define CPUID_TOPOLOGY_LEVEL_DIE (5U << 8)
|
|
|
77c23f |
|
|
|
77c23f |
/* MSR Feature Bits */
|
|
|
77c23f |
-#define MSR_ARCH_CAP_RDCL_NO (1U << 0)
|
|
|
77c23f |
-#define MSR_ARCH_CAP_IBRS_ALL (1U << 1)
|
|
|
77c23f |
-#define MSR_ARCH_CAP_RSBA (1U << 2)
|
|
|
77c23f |
+#define MSR_ARCH_CAP_RDCL_NO (1U << 0)
|
|
|
77c23f |
+#define MSR_ARCH_CAP_IBRS_ALL (1U << 1)
|
|
|
77c23f |
+#define MSR_ARCH_CAP_RSBA (1U << 2)
|
|
|
77c23f |
#define MSR_ARCH_CAP_SKIP_L1DFL_VMENTRY (1U << 3)
|
|
|
77c23f |
-#define MSR_ARCH_CAP_SSB_NO (1U << 4)
|
|
|
77c23f |
-#define MSR_ARCH_CAP_MDS_NO (1U << 5)
|
|
|
77c23f |
+#define MSR_ARCH_CAP_SSB_NO (1U << 4)
|
|
|
77c23f |
+#define MSR_ARCH_CAP_MDS_NO (1U << 5)
|
|
|
77c23f |
+#define MSR_ARCH_CAP_PSCHANGE_MC_NO (1U << 6)
|
|
|
77c23f |
+#define MSR_ARCH_CAP_TSX_CTRL_MSR (1U << 7)
|
|
|
77c23f |
+#define MSR_ARCH_CAP_TAA_NO (1U << 8)
|
|
|
77c23f |
|
|
|
77c23f |
#define MSR_CORE_CAP_SPLIT_LOCK_DETECT (1U << 5)
|
|
|
77c23f |
|
|
|
77c23f |
--
|
|
|
77c23f |
1.8.3.1
|
|
|
77c23f |
|