thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone

Blame SOURCES/kvm-i386-define-the-AMD-virt-ssbd-CPUID-feature-bit-CVE-.patch

2a3137
From 575e827677fb3c238250c44b5287ae327ddbfcde Mon Sep 17 00:00:00 2001
2a3137
From: Eduardo Habkost <ehabkost@redhat.com>
2a3137
Date: Wed, 23 May 2018 20:54:58 +0200
2a3137
Subject: [PATCH 2/2] i386: define the AMD 'virt-ssbd' CPUID feature bit
2a3137
 (CVE-2018-3639)
2a3137
MIME-Version: 1.0
2a3137
Content-Type: text/plain; charset=UTF-8
2a3137
Content-Transfer-Encoding: 8bit
2a3137
2a3137
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
2a3137
Message-id: <20180523205458.32764-3-ehabkost@redhat.com>
2a3137
Patchwork-id: 80462
2a3137
O-Subject: [RHEL-7.5.z qemu-kvm PATCH 2/2] i386: define the AMD 'virt-ssbd' CPUID feature bit (CVE-2018-3639)
2a3137
Bugzilla: 1584363
2a3137
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
2a3137
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
2a3137
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
2a3137
2a3137
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2a3137
2a3137
AMD Zen expose the Intel equivalant to Speculative Store Bypass Disable
2a3137
via the 0x80000008_EBX[25] CPUID feature bit.
2a3137
2a3137
This needs to be exposed to guest OS to allow them to protect
2a3137
against CVE-2018-3639.
2a3137
2a3137
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2a3137
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2a3137
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2a3137
Message-Id: <20180521215424.13520-3-berrange@redhat.com>
2a3137
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2a3137
(cherry picked from commit 403503b162ffc33fb64cfefdf7b880acf41772cd)
2a3137
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
2a3137
2a3137
Conflicts:
2a3137
    target/i386/cpu.c is target-i386/cpu.c
2a3137
2a3137
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2a3137
---
2a3137
 target-i386/cpu.c | 2 +-
2a3137
 1 file changed, 1 insertion(+), 1 deletion(-)
2a3137
2a3137
diff --git a/target-i386/cpu.c b/target-i386/cpu.c
2a3137
index 539c202..02dcc4b 100644
2a3137
--- a/target-i386/cpu.c
2a3137
+++ b/target-i386/cpu.c
2a3137
@@ -183,7 +183,7 @@ static const char *cpuid_80000008_ebx_feature_name[] = {
2a3137
     "ibpb", NULL, NULL, NULL,
2a3137
     NULL, NULL, NULL, NULL,
2a3137
     NULL, NULL, NULL, NULL,
2a3137
-    NULL, NULL, NULL, NULL,
2a3137
+    NULL, "virt-ssbd", NULL, NULL,
2a3137
     NULL, NULL, NULL, NULL,
2a3137
 };
2a3137
 
2a3137
-- 
2a3137
1.8.3.1
2a3137