From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] Fix SSBD not being exposed to guests. (v1)
Date: Mon, 21 May 2018 17:54:48 -0400 [thread overview]
Message-ID: <20180521215449.26423-1-konrad.wilk@oracle.com> (raw)
Hi,
Without this patch, when launching QEMU with -cpu +ssbd I ended up
with a warning seeing that the CPU does not support - which in fact it does.
The issue was the X86_FEATURE_ - the kvm_cpuid_7_0_edx_x86_features
had bit 17 set (X86_FEATURE_SSBD), while the right bit should have been
bit 31 ( X86_FEATURE_SPEC_CTRL_SSBD). That meant the masking:
entry->edx &= kvm_cpuid_7_0_edx_x86_features;
would nicely clear the SSBD bit.
This fixes:
Fixes: 52817587e706 ("x86/cpufeatures: Disentangle SSBD enumeration")
arch/x86/kvm/cpuid.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Konrad Rzeszutek Wilk (1):
KVM: VMX: Expose SSBD properly to guests.
next reply other threads:[~2018-05-21 21:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-21 21:54 Konrad Rzeszutek Wilk [this message]
2018-05-21 21:54 ` [PATCH] KVM: VMX: Expose SSBD properly to guests Konrad Rzeszutek Wilk
2018-05-22 23:50 ` Ben Hutchings
2018-06-07 13:14 ` Thomas Voegtle
2018-05-23 9:00 ` [tip:x86/pti] KVM/VMX: " tip-bot for Konrad Rzeszutek Wilk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180521215449.26423-1-konrad.wilk@oracle.com \
--to=konrad.wilk@oracle.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®