Blame SOURCES/kvm-target-i386-Add-new-bit-definitions-of-MSR_IA32_ARCH.patch

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