From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 22 Jan 2019 04:40:42 -0000 Received: from userp2120.oracle.com ([156.151.31.85]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1glnrc-0003pD-Lc for speck@linutronix.de; Tue, 22 Jan 2019 05:40:41 +0100 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0M4dQ7p056439 for ; Tue, 22 Jan 2019 04:40:34 GMT Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2q3vhrh7k7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 22 Jan 2019 04:40:34 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x0M4eW4p030313 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 22 Jan 2019 04:40:33 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x0M4eWhf018408 for ; Tue, 22 Jan 2019 04:40:32 GMT Date: Mon, 21 Jan 2019 23:40:29 -0500 From: Konrad Rzeszutek Wilk Subject: [MODERATED] Re: [PATCH v5 08/27] MDSv5 13 Message-ID: <20190122044029.GI12859@char.us.oracle.com> References: <813a48180018564edb59ad6c04f014c8c4d41c5b.1547858934.git.ak@linux.intel.com> MIME-Version: 1.0 In-Reply-To: <813a48180018564edb59ad6c04f014c8c4d41c5b.1547858934.git.ak@linux.intel.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Fri, Jan 18, 2019 at 04:50:23PM -0800, speck for Andi Kleen wrote: > From: Andi Kleen > Subject: x86/speculation/mds: Export MD_CLEAR CPUID to KVM > guests. > > Export the MD_CLEAR CPUID set by new microcode to signal > that VERW implements the clear cpu side effect to KVM guests. > > Also requires corresponding qemu patches > > Tested-by: Neelima Krishnan > Signed-off-by: Andi Kleen Reviewed-by: Konrad Rzeszutek Wilk Thank you! > --- > arch/x86/kvm/cpuid.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c > index bbffa6c54697..d61272f50aed 100644 > --- a/arch/x86/kvm/cpuid.c > +++ b/arch/x86/kvm/cpuid.c > @@ -409,7 +409,8 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, > /* cpuid 7.0.edx*/ > const u32 kvm_cpuid_7_0_edx_x86_features = > F(AVX512_4VNNIW) | F(AVX512_4FMAPS) | F(SPEC_CTRL) | > - F(SPEC_CTRL_SSBD) | F(ARCH_CAPABILITIES) | F(INTEL_STIBP); > + F(SPEC_CTRL_SSBD) | F(ARCH_CAPABILITIES) | F(INTEL_STIBP) | > + F(MD_CLEAR); > > /* all calls to cpuid_count() should be made on the same cpu */ > get_cpu(); > -- > 2.17.2