Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3715565imm; Fri, 25 May 2018 10:17:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZous3oinf4DUrUFxsn+dfC2aN9MHTT5nykhm4WOr8AP4WlCmPyYihO1BEYm8dsqh/O6yM6N X-Received: by 2002:a63:84c6:: with SMTP id k189-v6mr2742325pgd.49.1527268632026; Fri, 25 May 2018 10:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527268631; cv=none; d=google.com; s=arc-20160816; b=djKxT9mrgmDmbFRAcLaCopTvJziO9V2Vnx3D3MUw7djbmWLGVgGty1S6/7Ms6eq80O 5wPZCZ+v1jfKlJ//cHbeHQsVmPs9+YCLBEDl+PVN9StKQGn0rt1yQ65kxzyBQz4qHmeq Cu2XMWh0Oo52m0y2Ya/SDN2EiWEJIeG/gN7xmEyaHSWVUJjCPdBsnmG+tvu+8t4Zm2R+ QehYtQP9KbgEn2GpwdsZHD8tR2cfh9j/t2Xrgcr4qPMZ6UDtGFgFsgHZPar1sys5bNCt bFgMowLk9YjzmTg9VjDOeLJk9e77a99Tp4aFvZKpQZhs/4Kxmm18VVVq2wk3kwUAspI6 /m9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=In3dGAtLAlvfK8IuFcpftmItkzOWt94nI0/8cy8IAUk=; b=wSMaKtsDS9Jh2bgzqmnv7Br4KDSq60DDQ/pbyesN2pbcxAJD6NJ/bY50jAgC1xMAvr PqRj5YDlJJGTNZsc22Is+jRkMnDyq0yA9Q2MlFFQkpObzrITQVEG9fo21gVf5+9OfX7G Za7lLuAbp1nzgyv21UrGx93sh3LojzxOchNARIWzMUOOxr6FFqELg+xCCSucW3fOUD64 Vij8ndRxQkdmQT0oQRP+3HOYxNPsE2eBeIghF39gqQK1s762nLPZAR0FQ3qO89y0Y2TV QFAxCcQgPKQvOCHaEmk/1p9WFSFQJuoR80ljOt/TuYNuVh+0FVYSzpQpcyiJaHbIVpsw +8Hg== 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 f184-v6si18998291pgc.309.2018.05.25.10.16.56; Fri, 25 May 2018 10:17:11 -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 S1754713AbeEYRQq (ORCPT + 99 others); Fri, 25 May 2018 13:16:46 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:35710 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751509AbeEYRQp (ORCPT ); Fri, 25 May 2018 13:16:45 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8096640122CC; Fri, 25 May 2018 17:16:44 +0000 (UTC) Received: from llong.com (dhcp-17-81.bos.redhat.com [10.18.17.81]) by smtp.corp.redhat.com (Postfix) with ESMTP id 03CE42166BB2; Fri, 25 May 2018 17:16:43 +0000 (UTC) From: Waiman Long To: Paolo Bonzini , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" Cc: x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Waiman Long Subject: [PATCH] x86/KVM: Fix incorrect SSBD bit in kvm_cpuid_7_0_edx_x86_features Date: Fri, 25 May 2018 13:16:24 -0400 Message-Id: <1527268584-752-1-git-send-email-longman@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 25 May 2018 17:16:44 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Fri, 25 May 2018 17:16:44 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'longman@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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