]> git.proxmox.com Git - mirror_qemu.git/commitdiff
i386: define the AMD 'virt-ssbd' CPUID feature bit (CVE-2018-3639)
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 21 May 2018 21:54:23 +0000 (22:54 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 21 May 2018 21:59:08 +0000 (18:59 -0300)
AMD Zen expose the Intel equivalant to Speculative Store Bypass Disable
via the 0x80000008_EBX[25] CPUID feature bit.

This needs to be exposed to guest OS to allow them to protect
against CVE-2018-3639.

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-3-berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu.c

index a1185b17d1b994f8599cf801924a9d673457d278..d95310ffd463a8fa6fd904fd99c481639e406a62 100644 (file)
@@ -836,7 +836,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
             "ibpb", NULL, NULL, NULL,
             NULL, NULL, NULL, NULL,
             NULL, NULL, NULL, NULL,
-            NULL, NULL, NULL, NULL,
+            NULL, "virt-ssbd", NULL, NULL,
             NULL, NULL, NULL, NULL,
         },
         .cpuid_eax = 0x80000008,