Received: by 10.223.176.46 with SMTP id f43csp4400774wra; Tue, 23 Jan 2018 08:55:52 -0800 (PST) X-Google-Smtp-Source: AH8x226gBsVHD93nsW9Wz6vANxybx3EXpzwOiAwuA0/Y2kP9Z/lAq21eeXdZXmUUGM4Kfr0rcCJ5 X-Received: by 10.202.205.145 with SMTP id d139mr6818207oig.84.1516726552269; Tue, 23 Jan 2018 08:55:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516726552; cv=none; d=google.com; s=arc-20160816; b=0wh0/MQeIwRfIKvL0cUH2mqFvdD+x5VBTP2nJf7NXwtIV3CO/mjZD4RYhTARDnp6nx YDKGQzzEMP+veDGWl4TiWkWpPJzSLRp58D9wH6aCjUJDCxjc00thSelGkGFwbGdu7Pzd WyFZjPR/x346ctAIVsWfewUAEQy0y2s8xtgMqVt/g+RbWq8C/4DCARAnbT8TK4LDFX/b jHkkVCA1hJiNNZbFwDNdA9hwqUw01DDnjFqVkxOzICZuscGqb+uV1lcTRM7cObWcsiP/ 72uNL+8Q9wOc3/WdSoR56K0pjT4ugqIOSY6nDNm1ldk+oTOM0rHe9IXvnl1HQ6nXriUA m6mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:arc-authentication-results; bh=lja7L+pBu9UtXAxAG7s4nLD4n0vmu02OzwKlBzESVO0=; b=pbTACthmIe0RR8S7BiUOZ32oKvAgq7/jCb7RTWGSM8q9KAg5SOh4vZXipgF0ri+L2j u0+a+yte/OO442kKpUN3i4ffk2s3gi1y+/+n/YTHH1Oya0l3dBK90jOqMBHmg39Vgj5d 0V9ErNaF6aID0mCgYDJCDO+/Vr8tHvffnTCAOOze1vn8vxYznS03/ZxF4u5GY5Z1tqo6 HBEoVdiRtmxzkUt2PSz3EHT6bw0j39ZSWD37Pk+HxwIMJ9UK1He454s8cdl98BmFW0zp L2SFG+Dv7xOCrMCVI/737YFuxeMJvu3GZtDDClWbPEZHnY/Zmaew+WxLL51JwFIyJWW5 Q76Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=SX0PFbNo; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c76si15704187iod.220.2018.01.23.08.55.39; Tue, 23 Jan 2018 08:55:52 -0800 (PST) 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; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=SX0PFbNo; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751456AbeAWQxW (ORCPT + 99 others); Tue, 23 Jan 2018 11:53:22 -0500 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:59058 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751408AbeAWQxT (ORCPT ); Tue, 23 Jan 2018 11:53:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.co.uk; i=@amazon.co.uk; q=dns/txt; s=amazon201209; t=1516726399; x=1548262399; h=from:to:subject:date:message-id:in-reply-to:references; bh=lja7L+pBu9UtXAxAG7s4nLD4n0vmu02OzwKlBzESVO0=; b=SX0PFbNo7tOkvLwrWs+Iep6WkzWRjR+o1F4N+PF2O7cS7go/ffSzvElI Azylg1ndn4N7j6Rtq66MYhKmFHoeltbJ+ZLjCGlChnoiDjbGoQVCQy1IO 76awefLIKUQN4QtqpqZpGyVUxEfuovh3Rs3BRcwQqfMGBNtwAtTI26H8u o=; X-IronPort-AV: E=Sophos;i="5.46,402,1511827200"; d="scan'208";a="589159640" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-2a-c5104f52.us-west-2.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Jan 2018 16:53:15 +0000 Received: from uc8d3ff76b9bc5848a9cc.ant.amazon.com (pdx2-ws-svc-lb17-vlan2.amazon.com [10.247.140.66]) by email-inbound-relay-2a-c5104f52.us-west-2.amazon.com (8.14.7/8.14.7) with ESMTP id w0NGrAXA065599 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Jan 2018 16:53:11 GMT Received: from uc8d3ff76b9bc5848a9cc.ant.amazon.com (localhost [127.0.0.1]) by uc8d3ff76b9bc5848a9cc.ant.amazon.com (8.15.2/8.15.2/Debian-3) with ESMTP id w0NGr8wx025576; Tue, 23 Jan 2018 16:53:08 GMT Received: (from dwmw@localhost) by uc8d3ff76b9bc5848a9cc.ant.amazon.com (8.15.2/8.15.2/Submit) id w0NGr7tk025575; Tue, 23 Jan 2018 16:53:07 GMT From: David Woodhouse To: arjan@linux.intel.com, tglx@linutronix.de, karahmed@amazon.de, x86@kernel.org, linux-kernel@vger.kernel.org, tim.c.chen@linux.intel.com, bp@alien8.de, peterz@infradead.org, pbonzini@redhat.com, ak@linux.intel.com, torvalds@linux-foundation.org, gregkh@linux-foundation.org, thomas.lendacky@amd.com Subject: [PATCH v2 2/5] x86/cpufeatures: Add Intel feature bits for Speculation Control Date: Tue, 23 Jan 2018 16:52:52 +0000 Message-Id: <1516726375-25168-3-git-send-email-dwmw@amazon.co.uk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516726375-25168-1-git-send-email-dwmw@amazon.co.uk> References: <1516726375-25168-1-git-send-email-dwmw@amazon.co.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add three feature bits exposed by new microcode on Intel CPUs for speculation control. Signed-off-by: David Woodhouse Reviewed-by: Borislav Petkov --- arch/x86/include/asm/cpufeatures.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 7b25cf3..0a51070 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -320,6 +320,9 @@ /* Intel-defined CPU features, CPUID level 0x00000007:0 (EDX), word 18 */ #define X86_FEATURE_AVX512_4VNNIW (18*32+ 2) /* AVX-512 Neural Network Instructions */ #define X86_FEATURE_AVX512_4FMAPS (18*32+ 3) /* AVX-512 Multiply Accumulation Single precision */ +#define X86_FEATURE_SPEC_CTRL (18*32+26) /* Speculation Control (IBRS + IBPB) */ +#define X86_FEATURE_STIBP (18*32+27) /* Single Thread Indirect Branch Predictors */ +#define X86_FEATURE_ARCH_CAPABILITIES (18*32+29) /* IA32_ARCH_CAPABILITIES MSR (Intel) */ /* * BUG word(s) -- 2.7.4