ddf19c
From cdafcc1d68110ed172c09c9e6bba42ee15b5a6df Mon Sep 17 00:00:00 2001
ddf19c
From: "plai@redhat.com" <plai@redhat.com>
ddf19c
Date: Fri, 15 May 2020 18:02:40 +0100
ddf19c
Subject: [PATCH 13/17] i386: Add MSR feature bit for MDS-NO
ddf19c
ddf19c
RH-Author: plai@redhat.com
ddf19c
Message-id: <20200515180243.17488-2-plai@redhat.com>
ddf19c
Patchwork-id: 96609
ddf19c
O-Subject: [RHEL8.2.1 AV qemu-kvm PATCH 1/4] i386: Add MSR feature bit for MDS-NO
ddf19c
Bugzilla: 1769912
ddf19c
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
ddf19c
RH-Acked-by: Eduardo Habkost <ehabkost@redhat.com>
ddf19c
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
ddf19c
ddf19c
From: Cathy Zhang <cathy.zhang@intel.com>
ddf19c
ddf19c
Define MSR_ARCH_CAP_MDS_NO in the IA32_ARCH_CAPABILITIES MSR to allow
ddf19c
CPU models to report the feature when host supports it.
ddf19c
ddf19c
Signed-off-by: Cathy Zhang <cathy.zhang@intel.com>
ddf19c
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
ddf19c
Reviewed-by: Tao Xu <tao3.xu@intel.com>
ddf19c
Message-Id: <1571729728-23284-2-git-send-email-cathy.zhang@intel.com>
ddf19c
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
ddf19c
(cherry picked from commit 77b168d221191156c47fcd8d1c47329dfdb9439e)
ddf19c
Signed-off-by: Paul Lai <plai@redhat.com>
ddf19c
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
ddf19c
---
ddf19c
 target/i386/cpu.h | 1 +
ddf19c
 1 file changed, 1 insertion(+)
ddf19c
ddf19c
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
ddf19c
index 4441061..60304cc 100644
ddf19c
--- a/target/i386/cpu.h
ddf19c
+++ b/target/i386/cpu.h
ddf19c
@@ -839,6 +839,7 @@ typedef uint64_t FeatureWordArray[FEATURE_WORDS];
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
 
ddf19c
 #define MSR_CORE_CAP_SPLIT_LOCK_DETECT  (1U << 5)
ddf19c
 
ddf19c
-- 
ddf19c
1.8.3.1
ddf19c