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