Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3852578imm; Fri, 25 May 2018 12:52:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqps4tcND9fKVK+yo3/k7ZiFpHCxLbRZFTfDcRHoiPda0ULPbG2gLYvc5jLuvMnX/Ca4T4e X-Received: by 2002:a17:902:5327:: with SMTP id b36-v6mr4012724pli.316.1527277922042; Fri, 25 May 2018 12:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527277922; cv=none; d=google.com; s=arc-20160816; b=Uvp6hjn9OUqWlC8olcXCLXUTYV6ICHe4VlSRnKutfmU6L3GMaYW2nj+xjZiATvZt53 YpXLmGRbzbtz0hR6qCLKMkD6N+eAZ/1CniVcCfxBNjgd8DuP03fDP8Nzivzv3f368ACR YeRqaShxDGsH3k1qToGSCJsT5gtSPAn/u2Qol71VWLMHZ34FqWR64UqztuqzX8XikLre UqIvBafmTdPhe26s/gOsKtM5Pj7qdtdKwRHyZATsSd63VLxH+F67fcXfjQWpttGn4PXY 2oI7qwU7zN8mXcBow6Nl8FNxW2iCId9DFMW9kDWf+e73ym4T++EOqDq/5loBHjnyM1g5 S8Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=+IouYT+dY+Y4osV62q8lEsdeiizWa3Hqj576PdH6Nvc=; b=JAMfS2rR1z1Qa4QFY27k2gHxqoYQ9zRTggAnZk5ZLHy9Sfcw7ri9QUnPdwFSuljmdw m69h5pEcjsEUsZW6Ntcnd6eaaZjpDegT2sl5CTGcaRpmN7wefsdkcUwQTickYfaDl+RY 0LMtJFIaI1tEdIx4pVbvPKeZMmKj/8VUfxk6TzpOtqo1hKuFaB4OwQ/WIxnnWjDZrhOv 5U2hgJ2DVcuzZ8Pjn91IMBqWNEIgJ2hld3I/3WIxe2aUZtMZ5Zm/U1J/ZXk1BNz8+SWW 28m6kwcN/TIcOsUt8RXblOzrfZByDgQJaE/fsmtqore97+O5dFdQ7sbe6IAdbsxegA6l 4GJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x32-v6si23823300pld.435.2018.05.25.12.51.35; Fri, 25 May 2018 12:52:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968282AbeEYTuP (ORCPT + 99 others); Fri, 25 May 2018 15:50:15 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47530 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S967858AbeEYTuN (ORCPT ); Fri, 25 May 2018 15:50:13 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 280694023B91; Fri, 25 May 2018 19:50:13 +0000 (UTC) Received: from flask (unknown [10.43.2.80]) by smtp.corp.redhat.com (Postfix) with SMTP id C8FA4210C6C1; Fri, 25 May 2018 19:50:10 +0000 (UTC) Received: by flask (sSMTP sendmail emulation); Fri, 25 May 2018 21:50:10 +0200 Date: Fri, 25 May 2018 21:50:10 +0200 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Thomas Gleixner Cc: Paolo Bonzini , Waiman Long , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/KVM: Fix incorrect SSBD bit in kvm_cpuid_7_0_edx_x86_features Message-ID: <20180525195009.GC26007@flask> References: <1527268584-752-1-git-send-email-longman@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527268584-752-1-git-send-email-longman@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 25 May 2018 19:50:13 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 25 May 2018 19:50:13 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'rkrcmar@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-05-25 13:16-0400, Waiman Long: > As the SSBD bit in kvm_cpuid_7_0_edx_x86_features has been renamed to > SPEC_CTRL_SSBD in the commit 52817587e706 ("x86/cpufeatures: Disentangle > SSBD enumeration"). The corresponding name change needed to be made in > the KVM code as well. > > Fixes: 52817587e706 ("x86/cpufeatures: Disentangle SSBD enumeration") > > Signed-off-by: Waiman Long > --- Thomas, are you taking this one? > arch/x86/kvm/cpuid.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c > index ced8511..598461e 100644 > --- a/arch/x86/kvm/cpuid.c > +++ b/arch/x86/kvm/cpuid.c > @@ -407,8 +407,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(SSBD) | > - F(ARCH_CAPABILITIES); > + F(AVX512_4VNNIW) | F(AVX512_4FMAPS) | F(SPEC_CTRL) | > + F(SPEC_CTRL_SSBD) | F(ARCH_CAPABILITIES); > > /* all calls to cpuid_count() should be made on the same cpu */ > get_cpu(); > -- > 1.8.3.1 >