b38b0f
From 354818b02978df635ea030462223283529711970 Mon Sep 17 00:00:00 2001
69f3e1
From: Paolo Bonzini <pbonzini@redhat.com>
b38b0f
Date: Sun, 23 Jun 2019 15:19:12 +0200
b38b0f
Subject: [PATCH 1/4] target/i386: add MDS-NO feature
b38b0f
b38b0f
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
b38b0f
Message-id: <20190623151912.7829-1-pbonzini@redhat.com>
b38b0f
Patchwork-id: 88872
b38b0f
O-Subject: [RHEL-8.1.0 PATCH qemu-kvm] target/i386: add MDS-NO feature
b38b0f
Bugzilla: 1714792
b38b0f
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
b38b0f
RH-Acked-by: Stefano Garzarella <sgarzare@redhat.com>
b38b0f
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
b38b0f
b38b0f
Bugzilla: 1714792
b38b0f
b38b0f
Brew build: 22307357
69f3e1
69f3e1
Microarchitectural Data Sampling is a hardware vulnerability which allows
69f3e1
unprivileged speculative access to data which is available in various CPU
69f3e1
internal buffers.
69f3e1
69f3e1
Some Intel processors use the ARCH_CAP_MDS_NO bit in the
69f3e1
IA32_ARCH_CAPABILITIES
69f3e1
MSR to report that they are not vulnerable, make it available to guests.
69f3e1
69f3e1
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
69f3e1
Message-Id: <20190516185320.28340-1-pbonzini@redhat.com>
69f3e1
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
69f3e1
(cherry picked from commit 20140a82c67467f53814ca197403d5e1b561a5e5)
b38b0f
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
69f3e1
---
69f3e1
 target/i386/cpu.c | 2 +-
69f3e1
 1 file changed, 1 insertion(+), 1 deletion(-)
69f3e1
69f3e1
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
b38b0f
index 4411012..5c10093 100644
69f3e1
--- a/target/i386/cpu.c
69f3e1
+++ b/target/i386/cpu.c
69f3e1
@@ -1147,7 +1147,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
69f3e1
         .type = MSR_FEATURE_WORD,
69f3e1
         .feat_names = {
69f3e1
             "rdctl-no", "ibrs-all", "rsba", "skip-l1dfl-vmentry",
69f3e1
-            "ssb-no", NULL, NULL, NULL,
69f3e1
+            "ssb-no", "mds-no", NULL, NULL,
69f3e1
             NULL, NULL, NULL, NULL,
69f3e1
             NULL, NULL, NULL, NULL,
69f3e1
             NULL, NULL, NULL, NULL,
69f3e1
-- 
69f3e1
1.8.3.1
69f3e1