]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
cpu: define the 'ssbd' CPUID feature bit (CVE-2018-3639)
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 21 May 2018 22:05:07 +0000 (23:05 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 18 Jun 2018 17:49:08 +0000 (18:49 +0100)
New microcode introduces the "Speculative Store Bypass Disable"
CPUID feature bit. This needs to be exposed to guest OS to allow
them to protect against CVE-2018-3639.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
(cherry picked from commit 1dbca2eccad58d91a5fd33962854f1a653638182)

src/cpu/cpu_map.xml

index 00a43b172c4711d25570107580055fa8950aadb3..245aec3309a45f348efb11533fc6ceea536cb661 100644 (file)
     <feature name='spec-ctrl'>
       <cpuid eax_in='0x07' ecx_in='0x00' edx='0x04000000'/>
     </feature>
+    <feature name='ssbd'>
+      <cpuid eax_in='0x07' ecx_in='0x00' edx='0x80000000'/>
+    </feature>
 
     <!-- Processor Extended State Enumeration sub leaf 1 -->
     <feature name='xsaveopt'>