]> xenbits.xensource.com Git - libvirt.git/commit
cpu: define the 'virt-ssbd' CPUID feature bit (CVE-2018-3639)
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 21 May 2018 22:05:08 +0000 (23:05 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 22 May 2018 11:13:27 +0000 (13:13 +0200)
commit9267342206ce17f6933d57a3128cdc504d5945c9
treef91dcdc2c64e541fc5e8c2e46d00afb0c3569dba
parent1dbca2eccad58d91a5fd33962854f1a653638182
cpu: define the 'virt-ssbd' CPUID feature bit (CVE-2018-3639)

Some AMD processors only support a non-architectural means of
enabling Speculative Store Bypass Disable. To allow simplified
handling in virtual environments, hypervisors will expose an
architectural definition through CPUID bit 0x80000008_EBX[25].
This needs to be exposed to guest OS running on AMD x86 hosts to
allow them to protect against CVE-2018-3639.

Note that since this CPUID bit won't be present in the host CPUID
results on physical hosts, it will not be enabled automatically
in guests configured with "host-model" CPU unless using QEMU
version >= 2.9.0. Thus for older versions of QEMU, this feature
must be manually enabled using policy=force. Guests using the
"host-passthrough" CPU mode do not need special handling.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/cpu/cpu_map.xml