yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

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

ae23c9
From 7085d8ac9d907fbfddb2c2c432f239939aa2aa2f Mon Sep 17 00:00:00 2001
ae23c9
From: Eduardo Habkost <ehabkost@redhat.com>
ae23c9
Date: Wed, 13 Jun 2018 18:08:12 +0200
ae23c9
Subject: [PATCH 153/268] i386: define the AMD 'virt-ssbd' CPUID feature bit
ae23c9
 (CVE-2018-3639)
ae23c9
MIME-Version: 1.0
ae23c9
Content-Type: text/plain; charset=UTF-8
ae23c9
Content-Transfer-Encoding: 8bit
ae23c9
ae23c9
RH-Author: Eduardo Habkost <ehabkost@redhat.com>
ae23c9
Message-id: <20180613180812.28169-3-ehabkost@redhat.com>
ae23c9
Patchwork-id: 80676
ae23c9
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 2/2] i386: define the AMD 'virt-ssbd' CPUID feature bit (CVE-2018-3639)
ae23c9
Bugzilla: 1574216
ae23c9
RH-Acked-by: Igor Mammedov <imammedo@redhat.com>
ae23c9
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
ae23c9
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
ae23c9
ae23c9
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
ae23c9
ae23c9
AMD Zen expose the Intel equivalant to Speculative Store Bypass Disable
ae23c9
via the 0x80000008_EBX[25] CPUID feature bit.
ae23c9
ae23c9
This needs to be exposed to guest OS to allow them to protect
ae23c9
against CVE-2018-3639.
ae23c9
ae23c9
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
ae23c9
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ae23c9
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
ae23c9
Message-Id: <20180521215424.13520-3-berrange@redhat.com>
ae23c9
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
ae23c9
(cherry picked from commit 403503b162ffc33fb64cfefdf7b880acf41772cd)
ae23c9
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
ae23c9
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
ae23c9
---
ae23c9
 target/i386/cpu.c | 2 +-
ae23c9
 1 file changed, 1 insertion(+), 1 deletion(-)
ae23c9
ae23c9
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
ae23c9
index 8647109..caab4e2 100644
ae23c9
--- a/target/i386/cpu.c
ae23c9
+++ b/target/i386/cpu.c
ae23c9
@@ -1033,7 +1033,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
ae23c9
             "ibpb", NULL, NULL, NULL,
ae23c9
             NULL, NULL, NULL, NULL,
ae23c9
             NULL, NULL, NULL, NULL,
ae23c9
-            NULL, NULL, NULL, NULL,
ae23c9
+            NULL, "virt-ssbd", NULL, NULL,
ae23c9
             NULL, NULL, NULL, NULL,
ae23c9
         },
ae23c9
         .cpuid_eax = 0x80000008,
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9