Received: by 10.223.176.5 with SMTP id f5csp2824005wra; Mon, 5 Feb 2018 10:27:05 -0800 (PST) X-Google-Smtp-Source: AH8x224FsRvIqF+H99ILP9Te9A+rGYSF3uCPWBPzhR8s4gz4i4cXNejMSCg6SbOINHgA/RtC+UOb X-Received: by 2002:a17:902:b492:: with SMTP id y18-v6mr35816845plr.437.1517855225501; Mon, 05 Feb 2018 10:27:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517855225; cv=none; d=google.com; s=arc-20160816; b=coS/Ped7wX/JG2pNlk3/hgNGGZbS952DDvZ12QqhSr97vzwDHpYDuFCcmGbEb4LZ5s /m2AlE4ENa9fTc/S9Hv9SZO4bpGlYu3iMWyDQFuzV55Gzpn7keyPi4AY/F8xVpDRlOB6 0FKfH32zRabEI9kBQROHujWOmTZfkU8v28AbfOwpVEKsOMhdvkS01my9PcLiB+oJq+e0 GHxNUm/uE/kd4bIL8FwNgih1x2rKwI7hmCySfNUJ6P8B04AQQ3u6gKnI+6cyt1dw9hT/ pX92+Yr1EodGZbXydEy7h66P36ZjJyjUjcfsyxnQT9eHZ+6hF8VJ4mwGvU1tQ5ZHfUbe tcYQ== 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=PJXfUU7XFxhXtnvgvIphH92qnVV1UICb2r5rg5bRWTA=; b=UlDCn4Gl2uqh7arQ53IQSFSrYS+jlEsSS3ucYHyDdisLlu58HxIYDSCsC/uJvYPReI kJBXirOyg/I46sqNjYNWe5MiJ0A7fLFK2aA8G5TnzVEKCcI1DKA7i31sP3xhRexENOdD CWy2m+ZbUOdMdaSo8uS4RFIoZsmG3fkiy0PRuUZMoitX23dl4pkw0ClibHisfnGy69Ec z+eY2Xf2COeNTpqxHvzSD78TpFCERPJtzOreakZty6YTtFDCxsgEk3DwCpfsp/+ZkKEF Y/K3Zgk1hQgNYXpEWkzhi4W3rwwJN0htDCJxOsp+YKKPgfVRJmTBPk/NrOMkwKzAsZ2r FORA== 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 u74si87667pfg.192.2018.02.05.10.26.50; Mon, 05 Feb 2018 10:27:05 -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 S1753854AbeBES0E (ORCPT + 99 others); Mon, 5 Feb 2018 13:26:04 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:51412 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752582AbeBESYH (ORCPT ); Mon, 5 Feb 2018 13:24:07 -0500 Received: from localhost (unknown [104.132.1.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 36969FFC; Mon, 5 Feb 2018 18:24:01 +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.14 09/64] x86/cpufeatures: Add Intel feature bits for Speculation Control Date: Mon, 5 Feb 2018 10:22:28 -0800 Message-Id: <20180205182138.954064970@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180205182138.571333346@linuxfoundation.org> References: <20180205182138.571333346@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Woodhouse dwmw@amazon.co.uk 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: 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 @@ -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)