Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5770373imm; Mon, 23 Jul 2018 05:54:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcNm57iZWzlzr9danng5ECkPjHTM1/qv579E7YFXoHdM8nIoOScnhF6SYNIcGkspn2oqtyX X-Received: by 2002:a17:902:7009:: with SMTP id y9-v6mr13044632plk.249.1532350478539; Mon, 23 Jul 2018 05:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532350478; cv=none; d=google.com; s=arc-20160816; b=HPESBwHf7LjG1YzZ8MenP3zvidA+Fus7PdbbVIYUOs5n2xKpzR7pA1m2pf7ZZgSzay Tx9smcSUVJOjUQO9ICgaCtN6RyM0yk3YChYk4Fl9/gKpZNDVUjWm17fASixMr1ipEgom +3qU830lxg5CrHP7LrJAxkdo46puA3jGowovRsOLfhl4zMrItquhbJrAhDl5qs+/3t3O +6n5mwgb5zGxpBE95BnzpkYwbCUBaxhmUXrAcoota7m174joaTuG0WtWIKAoof+cKUcp SGfc3yO9E0dr86Xq6PercQfj10zzKOHM/lXO1236y+Nt/uPlYiI6Cd90nBnmoXVf+m7m A5QQ== 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=WqmNldBUPwDBY9Jg6NjArywEZh4djY8lbXIgL65LYVc=; b=h9dRSRXEYgGZ5LXLqbAe50Iql80JHIGV065HpyblwHsudHhl4bpQ1fJknO1NQVrq9A dz0gBX5bxFYalIAloG1rdv43S4M9DG0AyC7PJxcEOT92pmjqUlNI0H6lyv+IUBqc5eV6 /kqa5SW8G0gZQnAKwXTUMevzWXlt3FC3bPJVPsvIB66IijZJbwVMuWb7OFonQPWgVeDo 1ozS+Rsw+nlIHGO5QLXylK7HpKSRClGuB86rl+AvFgGLM8kCCdAum1ilmeW977CkZtV8 4MgN8H3h/DvVHsEMZI5nLF37R43w7qL+HhyODwaF60CFI5Twtajk98n8V8rwe8nVcPGD COUQ== 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 136-v6si7739370pgb.587.2018.07.23.05.54.23; Mon, 23 Jul 2018 05:54:38 -0700 (PDT) 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 S2389407AbeGWNrv (ORCPT + 99 others); Mon, 23 Jul 2018 09:47:51 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51200 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389369AbeGWNru (ORCPT ); Mon, 23 Jul 2018 09:47:50 -0400 Received: from localhost (LFbn-1-12238-233.w90-92.abo.wanadoo.fr [90.92.53.233]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 52ACAC84; Mon, 23 Jul 2018 12:45:38 +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, "Srivatsa S. Bhat" , "Matt Helsley (VMware)" , Alexey Makhalov , Bo Gan , gregkh@linux-foundation.org Subject: [PATCH 4.4 020/107] x86/cpufeatures: Add Intel feature bits for Speculation Control Date: Mon, 23 Jul 2018 14:41:14 +0200 Message-Id: <20180723122413.903719445@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180723122413.003644357@linuxfoundation.org> References: <20180723122413.003644357@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.4-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 Signed-off-by: Srivatsa S. Bhat Reviewed-by: Matt Helsley (VMware) Reviewed-by: Alexey Makhalov Reviewed-by: Bo Gan 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 @@ -288,6 +288,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)