thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
2ec96d
From c432e7520c4410545d5883f2a5be5dcecbf1854d Mon Sep 17 00:00:00 2001
2ec96d
From: Eduardo Habkost <ehabkost@redhat.com>
2ec96d
Date: Mon, 6 Jan 2020 13:04:21 +0100
2ec96d
Subject: [PATCH] target/i386: add MDS-NO feature
2ec96d
2ec96d
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
2ec96d
Message-id: <20191024031525.7449-1-ehabkost@redhat.com>
2ec96d
Patchwork-id: 91937
2ec96d
O-Subject: [RHEL-7.7.z qemu-kvm PATCH] target/i386: add MDS-NO feature
2ec96d
Bugzilla: 1755333
2ec96d
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
2ec96d
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2ec96d
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
2ec96d
2ec96d
From: Paolo Bonzini <pbonzini@redhat.com>
2ec96d
2ec96d
Microarchitectural Data Sampling is a hardware vulnerability which allows
2ec96d
unprivileged speculative access to data which is available in various CPU
2ec96d
internal buffers.
2ec96d
2ec96d
Some Intel processors use the ARCH_CAP_MDS_NO bit in the
2ec96d
IA32_ARCH_CAPABILITIES
2ec96d
MSR to report that they are not vulnerable, make it available to guests.
2ec96d
2ec96d
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2ec96d
Message-Id: <20190516185320.28340-1-pbonzini@redhat.com>
2ec96d
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2ec96d
(cherry picked from commit 20140a82c67467f53814ca197403d5e1b561a5e5)
2ec96d
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2ec96d
---
2ec96d
 target-i386/cpu.c | 2 +-
2ec96d
 1 file changed, 1 insertion(+), 1 deletion(-)
2ec96d
2ec96d
diff --git a/target-i386/cpu.c b/target-i386/cpu.c
2ec96d
index 48d3aec..63ae76e 100644
2ec96d
--- a/target-i386/cpu.c
2ec96d
+++ b/target-i386/cpu.c
2ec96d
@@ -200,7 +200,7 @@ static const char *cpuid_xsave_feature_name[] = {
2ec96d
 
2ec96d
 static const char *cpuid_arch_capabilities_feature_name[] = {
2ec96d
     "rdctl-no", "ibrs-all", "rsba", "skip-l1dfl-vmentry",
2ec96d
-    "ssb-no", NULL, NULL, "tsx-ctrl",
2ec96d
+    "ssb-no", "mds-no", NULL, "tsx-ctrl",
2ec96d
     "taa-no", NULL, NULL, NULL,
2ec96d
     NULL, NULL, NULL, NULL,
2ec96d
     NULL, NULL, NULL, NULL,
2ec96d
-- 
2ec96d
1.8.3.1
2ec96d