Received: by 10.223.176.5 with SMTP id f5csp720354wra; Fri, 9 Feb 2018 06:12:09 -0800 (PST) X-Google-Smtp-Source: AH8x227llnjRjRff2mwxah5jc8EZ4z9fcVuX2DXfAL4q8O30k7nlVaTiPr/t97utOpbOSMX+2Jm/ X-Received: by 10.99.127.86 with SMTP id p22mr1732570pgn.157.1518185528966; Fri, 09 Feb 2018 06:12:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518185528; cv=none; d=google.com; s=arc-20160816; b=PRyoMKXrJjwSYZzHnOTo8s+Va067Eymq/WDYo3Os3xLWoVEz7k51LBKmoAdz2K81cU 6V0T/hwihMIoohofvsdle6r5wsbgdKMqmYiZsv9MWSa6WCn2fGlTBtfiHkkYfg6bAg/y NXnHtYGhGXsTJfw7L3eVTcNca4qIw5v1zAFiqntIQoX2ysPZqg+u6nxf6zjpumyTYycF TrPPsbUn8mHzAF49VQ2Jf9Gx0EXuoqakeM7NUNExCZXMILNlikXbTTGuWE4nwd6k5Du5 +qSuPXUd82BE8BDyYdU0BkIDrHnedrjm5p/DiUWB/q0QnRVrBxMSS6HgR6gz5xcKiIHl rzLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=l2XxMemSvlPVeQEoJFXVqlbgiPla6O94T946MbjwVyE=; b=nDnSMfm8VHAtHZck93J1vyFlkcuZQT5kosZWl04bEXHdXciR/F1O1fWkL8HJ5CnK9K TuG4w67Yt2TXukv4VfZzIesTXJ/iobUa+xV+KDviHc2DyE17J5uJLGTvSA2f+liya1sw YSWjXj3v72as1osOxZ3ERAbAbPPRPuuxVswmMkLDCvggKs0C585YlyzLlnTvnUxS1TWc HADfEzU7/1rdpwrywVr+3Xoamjh4GD6lSmUl7jB2bg72vpKjlsRaoPh1hMV+VNULlUoz CyOzAMyK99F/hq0VMxickOJgvb2TC0iERED9VQlhw8mdG2jb1+aP2o6vc28kZD1mJVYy 2acg== 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 i62si1756261pfe.364.2018.02.09.06.11.54; Fri, 09 Feb 2018 06:12:08 -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 S1753004AbeBIOLI (ORCPT + 99 others); Fri, 9 Feb 2018 09:11:08 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:49648 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752809AbeBINmI (ORCPT ); Fri, 9 Feb 2018 08:42:08 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 647A6E04; Fri, 9 Feb 2018 13:42:07 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Woodhouse , Thomas Gleixner , Borislav Petkov , gnomes@lxorguk.ukuu.org.uk, ak@linux.intel.com, ashok.raj@intel.com, dave.hansen@intel.com, karahmed@amazon.de, arjan@linux.intel.com, torvalds@linux-foundation.org, peterz@infradead.org, bp@alien8.de, pbonzini@redhat.com, tim.c.chen@linux.intel.com, gregkh@linux-foundation.org Subject: [PATCH 4.9 40/92] x86/cpufeatures: Add Intel feature bits for Speculation Control Date: Fri, 9 Feb 2018 14:39:09 +0100 Message-Id: <20180209133934.049695256@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180209133931.211869118@linuxfoundation.org> References: <20180209133931.211869118@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Woodhouse (cherry picked from commit fc67dd70adb711a45d2ef34e12d1a8be75edde61) 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 Signed-off-by: David Woodhouse Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/cpufeatures.h | 3 +++ 1 file changed, 3 insertions(+) --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -296,6 +296,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)