Received: by 10.223.176.46 with SMTP id f43csp806147wra; Fri, 26 Jan 2018 07:13:12 -0800 (PST) X-Google-Smtp-Source: AH8x224BB8Odvb4cNPnp4TNIGhTusqnt0K83MiCyufXBcK2PaWlY0q2Epdtf6p4kvLOBp3ScPdm7 X-Received: by 10.99.120.203 with SMTP id t194mr15827752pgc.39.1516979592044; Fri, 26 Jan 2018 07:13:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516979592; cv=none; d=google.com; s=arc-20160816; b=f2yW2K5gFXh4g5/FsOorVMaTUipImVDvDHoIqGOCpSiuGzjydyaEsVMTDh/WDoGgTb KQN2JQUFx9TAftN2aZfMAUtFk09E6ELnW6KJurJDFkT/4Ksj/wMqq+2stywmpE4OU/lp rZp+uE40V6s4Zp6AeFJN1ScLqk44j/b/hHzMRhOmP7Pd50kQEpz0St7oN4sQDhrEoW35 ut6FIFdmLcm0xKW/nXGBbMydsgMArMV0Xc4VX8mRX6o54LsJkMYVLPvjwKyLOQDD2MV0 sjAJH/737Dy+hx456QdNe0eXJ3pHo46LXNINaPgtakSyi3JWNF5J/qN0hSLOrTWWZDqk JOhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=Wl8w5VP+Wn6MJeuFMd0Zhpgr/E4FxCmE2QSsjNax9Gc=; b=A9QVt0ZIg0NIL4g+Xp7m1SOrXhU61X8zSHc4D4juKFE0iL2iPxhkrWgLlXHm6ftuur Ch/10jY5Cbx7E3zthsn6AMy8fMyPKqlljtQ7SiZ2zFKNkYI2TxAisibBXnHGAwDCW4Ei 83PavteF9TlFj+3Eqv2x5s9ffkwmdVE8YwgfNibhB+8yYsnWEaSxoARrlp9D8A/94XJ0 ytutp3gncFX5DLXTSJzZKOlRHCmivvSospqPtUANLvoWlM9nUYIBRztNMPfVgjacLcKZ XlDUBT65IeAYPOofZ6rv8Twm/+/V8b3PwmrYxj/fiiGuvucUN2BMqapQwjYGeU6jHv0B rv+g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x81si6492603pfe.361.2018.01.26.07.12.57; Fri, 26 Jan 2018 07:13:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753465AbeAZPMZ (ORCPT + 99 others); Fri, 26 Jan 2018 10:12:25 -0500 Received: from terminus.zytor.com ([65.50.211.136]:39971 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752916AbeAZPMY (ORCPT ); Fri, 26 Jan 2018 10:12:24 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w0QF04LF031188; Fri, 26 Jan 2018 07:00:04 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w0QF044T031185; Fri, 26 Jan 2018 07:00:04 -0800 Date: Fri, 26 Jan 2018 07:00:04 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for David Woodhouse Message-ID: Cc: linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, mingo@kernel.org, tglx@linutronix.de, hpa@zytor.com, bp@suse.de, dwmw@amazon.co.uk Reply-To: tglx@linutronix.de, hpa@zytor.com, mingo@kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, dwmw@amazon.co.uk, bp@suse.de In-Reply-To: <1516896855-7642-3-git-send-email-dwmw@amazon.co.uk> References: <1516896855-7642-3-git-send-email-dwmw@amazon.co.uk> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/pti] x86/cpufeatures: Add Intel feature bits for Speculation Control Git-Commit-ID: fc67dd70adb711a45d2ef34e12d1a8be75edde61 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: fc67dd70adb711a45d2ef34e12d1a8be75edde61 Gitweb: https://git.kernel.org/tip/fc67dd70adb711a45d2ef34e12d1a8be75edde61 Author: David Woodhouse AuthorDate: Thu, 25 Jan 2018 16:14:10 +0000 Committer: Thomas Gleixner CommitDate: Fri, 26 Jan 2018 15:53:16 +0100 x86/cpufeatures: Add Intel feature bits for Speculation Control Add three feature bits exposed by new microcode on Intel CPUs for speculation control. Signed-off-by: David Woodhouse Signed-off-by: Thomas Gleixner Reviewed-by: Greg Kroah-Hartman Reviewed-by: Borislav Petkov Cc: gnomes@lxorguk.ukuu.org.uk Cc: ak@linux.intel.com Cc: ashok.raj@intel.com Cc: dave.hansen@intel.com Cc: karahmed@amazon.de Cc: arjan@linux.intel.com Cc: torvalds@linux-foundation.org Cc: peterz@infradead.org Cc: bp@alien8.de Cc: pbonzini@redhat.com Cc: tim.c.chen@linux.intel.com Cc: gregkh@linux-foundation.org Link: https://lkml.kernel.org/r/1516896855-7642-3-git-send-email-dwmw@amazon.co.uk --- 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)