]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/kvm.c
i386: Define the Virt SSBD MSR and handling of it (CVE-2018-3639)
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 21 May 2018 21:54:24 +0000 (22:54 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 21 May 2018 21:59:08 +0000 (18:59 -0300)
commitcfeea0c021db6234c154dbc723730e81553924ff
treed72e36a2202ff276ca218b6cc07f3fd30879b0d3
parentd19d1f965904a533998739698020ff4ee8a103da
i386: Define the Virt SSBD MSR and handling of it (CVE-2018-3639)

"Some AMD processors only support a non-architectural means of enabling
speculative store bypass disable (SSBD).  To allow a simplified view of
this to a guest, an architectural definition has been created through a new
CPUID bit, 0x80000008_EBX[25], and a new MSR, 0xc001011f.  With this, a
hypervisor can virtualize the existence of this definition and provide an
architectural method for using SSBD to a guest.

Add the new CPUID feature, the new MSR and update the existing SSBD
support to use this MSR when present." (from x86/speculation: Add virtualized
speculative store bypass disable support in Linux).

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20180521215424.13520-4-berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu.h
target/i386/kvm.c
target/i386/machine.c