From: Konrad Rzeszutek Wilk Date: Mon, 21 May 2018 21:54:23 +0000 (+0100) Subject: i386: define the AMD 'virt-ssbd' CPUID feature bit (CVE-2018-3639) X-Git-Tag: v2.12.1~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43163837d3d163baa8fe44fa2b08080f1cf2ed9d;p=thirdparty%2Fqemu.git i386: define the AMD 'virt-ssbd' CPUID feature bit (CVE-2018-3639) 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 Reviewed-by: Daniel P. Berrangé Signed-off-by: Daniel P. Berrangé Message-Id: <20180521215424.13520-3-berrange@redhat.com> Signed-off-by: Eduardo Habkost (cherry picked from commit 403503b162ffc33fb64cfefdf7b880acf41772cd) Signed-off-by: Michael Roth --- diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 2f5263e22f0..2e305ab6890 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -541,7 +541,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,