Received: by 10.223.176.5 with SMTP id f5csp2828256wra; Mon, 5 Feb 2018 10:31:34 -0800 (PST) X-Google-Smtp-Source: AH8x225f2WHfLlqsVmvyIyexh/G4/mCjd1XhkZx+DkJrRohoYTHJjIQ89l2nImUBGGLEL7CVDHVy X-Received: by 2002:a17:902:15c5:: with SMTP id a5-v6mr44860122plh.277.1517855494050; Mon, 05 Feb 2018 10:31:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517855494; cv=none; d=google.com; s=arc-20160816; b=wlYK0gXSv5lzZ40kZIWCvS4NzM5e5lWQbj58902Bqz8eRQgtukQnEnWbDWl2xNMPVi 7g8aCHPOvJz+xVxSaWqpVaTv/c1cDYiovXv+HDkBVxF4npJtttcU9gJ/DNcDH8DhPO2s a/FKxsu8CfJjiqAIU8sxamTOKg75eTp0qFlXC1ruqFyPnxsafZVfADUmvHqsLDjFdPV+ 7bWFt5d69JqLpWBciZu4HcG0lE4W1BLg0SmyP1XN8uOeuhb88BD4tEgAW5xcjJ1GzBBg /5ZFqd+8Lq3ECcKd7gn93D0cm0zSjWZP+yK0FexB30d2gB1gSlbNqOTQ0nfTwsbckjlt KtmA== 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=WlX3nvf+9wHwVvOm8UOijYwFMSbZCb9hLCuompoGUHU=; b=NlzMq/VNRAU7u3KPewOqrozvhGUMBjxPruS6v+odT7vlsU9x7I3NDBsG5QKNfgPbAu gOOT8LBn6Xhp9/0ZH24DRa4S8wmrRHozTPUWtaO6/+hYY0agYidfJV8MRL46sqLuj31p Xb/Rif0Plyj5u6Av05hTfwOyAo1HKSGOx056NEZV+u22nuK8iCnMm74MCkj5up+Dc5rt 0l1tHVUyQR7LgSFu/NHhZ1sulX0oSAjUKqY8UxjyiZqkm3ollumVWl0FaUcqBQt6iM6Q nyk1V7BmufLnNrw1PifwdVuV2D6prryortxXOSZWrF2TtgW1mWs3JrlqAtkh86KJ9925 Ebug== 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 d25-v6si7271198plj.438.2018.02.05.10.31.18; Mon, 05 Feb 2018 10:31:34 -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 S1753846AbeBES3L (ORCPT + 99 others); Mon, 5 Feb 2018 13:29:11 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52320 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753679AbeBESZD (ORCPT ); Mon, 5 Feb 2018 13:25:03 -0500 Received: from localhost (unknown [104.132.1.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6CF4E10EB; Mon, 5 Feb 2018 18:24:54 +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.15 05/60] x86/cpufeatures: Add Intel feature bits for Speculation Control Date: Mon, 5 Feb 2018 10:22:38 -0800 Message-Id: <20180205182214.137394985@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180205182213.902626065@linuxfoundation.org> References: <20180205182213.902626065@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.15-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)