yeahuh / rpms / qemu-kvm

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