3f62f1
From ff87044456775053ad487635804d7ab49d476cf7 Mon Sep 17 00:00:00 2001
3f62f1
Message-Id: <ff87044456775053ad487635804d7ab49d476cf7@dist-git>
3f62f1
From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= <berrange@redhat.com>
3f62f1
Date: Thu, 10 May 2018 09:06:15 +0200
3f62f1
Subject: [PATCH] cpu: define the 'ssbd' CPUID feature bit (CVE-2018-3639)
3f62f1
MIME-Version: 1.0
3f62f1
Content-Type: text/plain; charset=UTF-8
3f62f1
Content-Transfer-Encoding: 8bit
3f62f1
3f62f1
New microcode introduces the "Speculative Store Bypass Disable"
3f62f1
CPUID feature bit. This needs to be exposed to guest OS to allow
3f62f1
them to protect against CVE-2018-3639.
3f62f1
3f62f1
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
3f62f1
(no upstream commit yet)
3f62f1
3f62f1
Conflicts:
3f62f1
	src/cpu/cpu_map.xml
3f62f1
            - stibp and arch-facilities features pushed for Spectre do
3f62f1
              not exist upstream
3f62f1
3f62f1
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
3f62f1
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
3f62f1
---
3f62f1
 src/cpu/cpu_map.xml | 3 +++
3f62f1
 1 file changed, 3 insertions(+)
3f62f1
3f62f1
diff --git a/src/cpu/cpu_map.xml b/src/cpu/cpu_map.xml
3f62f1
index 4d786f1e0a..cee3541d24 100644
3f62f1
--- a/src/cpu/cpu_map.xml
3f62f1
+++ b/src/cpu/cpu_map.xml
3f62f1
@@ -301,6 +301,9 @@
3f62f1
     <feature name='arch-facilities'>
3f62f1
       <cpuid eax_in='0x07' ecx_in='0x00' edx='0x20000000'/>
3f62f1
     </feature>
3f62f1
+    <feature name='ssbd'>
3f62f1
+      <cpuid eax_in='0x07' ecx_in='0x00' edx='0x80000000'/>
3f62f1
+    </feature>
3f62f1
 
3f62f1
     
3f62f1
     <feature name='xsaveopt'>
3f62f1
-- 
3f62f1
2.17.0
3f62f1