Received: by 10.223.176.5 with SMTP id f5csp2851304wra; Mon, 5 Feb 2018 10:57:34 -0800 (PST) X-Google-Smtp-Source: AH8x226OV5/ndIh8JF0EaUXZT+TZrakXNUpi1cWOJy8imw+mhaTJJ9kVmXWoj3upzmiuqu00N9Mq X-Received: by 10.99.163.9 with SMTP id s9mr2811554pge.264.1517857054769; Mon, 05 Feb 2018 10:57:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517857054; cv=none; d=google.com; s=arc-20160816; b=Chfl3G5jJuUf1B90s66DbNO7KI38fn9BA7RLE5bbH/9tdntWQh84p0tFszcJoboNJU wNm5UUFMFxEf6I9Y8KuQNWYLZ42Grl3j+f5MZvq4eJJ8AJadkaqOGi7EJPPvBrg/TNsH N7FRQvCBprEdrwekHL30dyUuai0HAa3BSZDdSXonYOnf5yWhfG58vqETPlOEEI6xo5Pg aFdIiQeWfwuQmElbxPJbS6TfXms0w6hmj/OO6/HOoiA4gKHHdExShaD3ikZtsfKIVOnu h0Gbs7aKJ1LQ+zUecUCVSBqvtWmZpEyd3NBNZT+VkkZq5hCarIjD1OFIDH6FwWJobcTs EWaQ== 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=krdFpbP9VzsNko3Www8Vb1k19E/s/78RiYQYrTkYBEc=; b=xPAddFH5Uy96fsxfHwv4zYxLi5X5reIwjFi914B3hkpR97YuaJbD9VTUKO7LyFdvH6 0dI64bnFb2P89nKiSzbQQygtHRkLhi5dt6moHWHOePMQY5XSJoPpTLKc68g8LjRCpPkG 7wfcPJhds+QW9814ZrA20zPoAsewpjTZM4s/ttSWhdbSL451cVBjfhO5GSdHz2JuQJ3C K6CZvhPWLl6boa92aUZ72CiHC7N8IINKMtsFlDskN0KDJ+oPQ5F3paRxXQPjpXk4g23I bDn2NvVlEy+AcKdf0EmsPryB8p6srTPoT+p28xYn2oj1wQ5iB5PEvlLNwk7n8ScOwhOJ 3rTA== 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 s6si322521pgr.221.2018.02.05.10.57.19; Mon, 05 Feb 2018 10:57: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 S1753765AbeBES5A (ORCPT + 99 others); Mon, 5 Feb 2018 13:57:00 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52374 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753688AbeBESZF (ORCPT ); Mon, 5 Feb 2018 13:25:05 -0500 Received: from localhost (unknown [104.132.1.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 719111111; Mon, 5 Feb 2018 18:24:56 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Woodhouse , Thomas Gleixner , 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 07/60] x86/msr: Add definitions for new speculation control MSRs Date: Mon, 5 Feb 2018 10:22:40 -0800 Message-Id: <20180205182214.217289334@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 1e340c60d0dd3ae07b5bedc16a0469c14b9f3410 Add MSR and bit definitions for SPEC_CTRL, PRED_CMD and ARCH_CAPABILITIES. See Intel's 336996-Speculative-Execution-Side-Channel-Mitigations.pdf Signed-off-by: David Woodhouse Signed-off-by: Thomas Gleixner Reviewed-by: Greg Kroah-Hartman 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-5-git-send-email-dwmw@amazon.co.uk Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/msr-index.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -39,6 +39,13 @@ /* Intel MSRs. Some also available on other CPUs */ +#define MSR_IA32_SPEC_CTRL 0x00000048 /* Speculation Control */ +#define SPEC_CTRL_IBRS (1 << 0) /* Indirect Branch Restricted Speculation */ +#define SPEC_CTRL_STIBP (1 << 1) /* Single Thread Indirect Branch Predictors */ + +#define MSR_IA32_PRED_CMD 0x00000049 /* Prediction Command */ +#define PRED_CMD_IBPB (1 << 0) /* Indirect Branch Prediction Barrier */ + #define MSR_PPIN_CTL 0x0000004e #define MSR_PPIN 0x0000004f @@ -57,6 +64,11 @@ #define SNB_C3_AUTO_UNDEMOTE (1UL << 28) #define MSR_MTRRcap 0x000000fe + +#define MSR_IA32_ARCH_CAPABILITIES 0x0000010a +#define ARCH_CAP_RDCL_NO (1 << 0) /* Not susceptible to Meltdown */ +#define ARCH_CAP_IBRS_ALL (1 << 1) /* Enhanced IBRS support */ + #define MSR_IA32_BBL_CR_CTL 0x00000119 #define MSR_IA32_BBL_CR_CTL3 0x0000011e