cryptospore / rpms / qemu-kvm

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