Received: by 10.223.176.46 with SMTP id f43csp995225wra; Wed, 24 Jan 2018 09:01:08 -0800 (PST) X-Google-Smtp-Source: AH8x226SjQGI5YNrznqjodPFBaiG2PAYcwUDsnHtbAJR6xOgLBxJ2SJ9EXOKRCryD0IO0+Ub+NT/ X-Received: by 10.98.157.211 with SMTP id a80mr13491206pfk.242.1516813268637; Wed, 24 Jan 2018 09:01:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516813268; cv=none; d=google.com; s=arc-20160816; b=aATSdY7vIZ62VlMzISz9m5DI+gAQECMKstlyIhLNMPmJHjcmAisewHWZ5GKF+UYiHr +/o1X3/GywTeasqjxbJlrcVmOr6sBSPlxP3K/+oquX6JitiymeeL2gDPAzvWpvhFWKix 1BAjEhT/R6wPcKrDPrfMUJLJCCvZyzwIFQZlwHuBsgtxJQa368Lxk1Q9fEXPovolwSsd 67qZ0q8z9chOJAEB72CAI/l60rz6NjU0mQQtwLgGBpPPA7JjdKDI8cBCpA3Cf1omdHcM Z2To/lqS4WMBB3wb2GUIRwN5AQiV2WaMspjas4R1mrqqe0tzh6lJzUIdXTZ8MlHlqFbt 9riw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:arc-authentication-results; bh=lja7L+pBu9UtXAxAG7s4nLD4n0vmu02OzwKlBzESVO0=; b=mWudZuNLzjITVIeHP068Ak3l/i2SdbyAYHxkL3mnR6OANkYT9jOUFFHiAq/gaV8DIc Tt2STWxm0gil8tEC1A8gP0Ybu2BYwAnWe75jXRFy8Qi+FA3eBrQYJIPQVgKPJZ1NviJO V24t9nL7fTiCUIYrg9w3gOVIPbKIuLE9NXMkalpcxhIpMG5JkgbnNugT3lSGRjbBgQF0 zq0DzKs2Ia0vxKfQ9b1Xg2Bs7rCVcayRni3fBbkct1Py0K2M/1yrpm5tg5mxRPCsXvAP K/1c3Z5pTt7V/DoIAvh42KsWUp1iIKgJLmW2ZnoLwdIlW5TXKHzDepiF4CcbU2LGVfWv a5WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=gWAQxJId; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o190si346927pga.553.2018.01.24.09.00.54; Wed, 24 Jan 2018 09:01: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; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=gWAQxJId; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934423AbeAXQ6c (ORCPT + 99 others); Wed, 24 Jan 2018 11:58:32 -0500 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:49835 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934347AbeAXQ5g (ORCPT ); Wed, 24 Jan 2018 11:57:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.co.uk; i=@amazon.co.uk; q=dns/txt; s=amazon201209; t=1516813056; x=1548349056; h=from:to:subject:date:message-id:in-reply-to:references; bh=lja7L+pBu9UtXAxAG7s4nLD4n0vmu02OzwKlBzESVO0=; b=gWAQxJId2jYUT4fUXBBCQ0GhLh7G7/CS6zbFVAvqrtn9J5F3Kzi+xBrQ UqSZJkt/BSLQtGUIJ8/1HhiBO0tQnhmM9m5n2V+7T9l7f7d/HqEPwlzkq QGkE3PFQlCRLWUsDJ5uFI3kENeFi6TU8eGZUOkuEsZBzKP7AIaZCaOVh2 0=; X-IronPort-AV: E=Sophos;i="5.46,408,1511827200"; d="scan'208";a="328948752" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1e-c7c08562.us-east-1.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 24 Jan 2018 16:57:26 +0000 Received: from uc8d3ff76b9bc5848a9cc.ant.amazon.com (iad1-ws-svc-lb91-vlan2.amazon.com [10.0.103.146]) by email-inbound-relay-1e-c7c08562.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w0OGvGXS128689 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 24 Jan 2018 16:57:18 GMT Received: from uc8d3ff76b9bc5848a9cc.ant.amazon.com (localhost [127.0.0.1]) by uc8d3ff76b9bc5848a9cc.ant.amazon.com (8.15.2/8.15.2/Debian-3) with ESMTP id w0OGvFJV011173; Wed, 24 Jan 2018 16:57:15 GMT Received: (from dwmw@localhost) by uc8d3ff76b9bc5848a9cc.ant.amazon.com (8.15.2/8.15.2/Submit) id w0OGvFGV011172; Wed, 24 Jan 2018 16:57:15 GMT From: David Woodhouse To: arjan@linux.intel.com, tglx@linutronix.de, karahmed@amazon.de, x86@kernel.org, linux-kernel@vger.kernel.org, tim.c.chen@linux.intel.com, bp@alien8.de, peterz@infradead.org, pbonzini@redhat.com, ak@linux.intel.com, torvalds@linux-foundation.org, gregkh@linux-foundation.org, dave.hansen@intel.com, gnomes@lxorguk.ukuu.org.uk Subject: [PATCH v3 2/6] x86/cpufeatures: Add Intel feature bits for Speculation Control Date: Wed, 24 Jan 2018 16:57:01 +0000 Message-Id: <1516813025-10794-3-git-send-email-dwmw@amazon.co.uk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516813025-10794-1-git-send-email-dwmw@amazon.co.uk> References: <1516813025-10794-1-git-send-email-dwmw@amazon.co.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add three feature bits exposed by new microcode on Intel CPUs for speculation control. Signed-off-by: David Woodhouse Reviewed-by: Borislav Petkov --- 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) -- 2.7.4