Received: by 10.223.176.46 with SMTP id f43csp1829772wra; Sun, 21 Jan 2018 05:28:23 -0800 (PST) X-Google-Smtp-Source: AH8x224C6IA/9tQaRo5jK5iPrPgIrMceuBRT0jYVFIAKMqlUtGmNifZLKI0zVdktTJCUNAUqCfx4 X-Received: by 2002:a17:902:3f83:: with SMTP id a3-v6mr1786137pld.263.1516541303528; Sun, 21 Jan 2018 05:28:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516541303; cv=none; d=google.com; s=arc-20160816; b=Jp85/mOogRiJDFLKupFk52fn17qZANbXV40KpVNAangu0E+3Um6mmsFMZji6EJSfYq 2Pyr3f1hJ99gCFN/PaF91ib9DMKDY+pSk6yn6/gJftMKXidA5yLurG36Ww9Y/+lzvbk7 WzQI+DQxORDSf2b/yslm8XZNi+jb1UadNC4KDYd2StxGi6wT37o1Ll6ORhdAJ3sWK4VA ZUjqT+r7bpCd66L/mQ4B8M9e1UDhUIDlFyR0sFWsOGxtMO4RBkFuuUYPjhYoy1NxrjWK Y7Py6zS9GpRWj5PEn08CQ/3mbwCL981H5qrl8B069kykbvZqpQM/JteF39aIawR2VdF1 8uag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:importance:content-transfer-encoding :mime-version:user-agent:cc:to:from:subject:date:references :in-reply-to:message-id:dkim-signature:arc-authentication-results; bh=w+1sVOSCt/ga3aPFrB72z+VsE94wYtFoDWwm1mJ7+0A=; b=K0uQI/6mmGEBj5ceKMR6E1abRD7np4XgtxM2l5XyMYaqkbLfpKFIuK3F/cdoquffDx 8TZ+G2k1EiNP6otfQQRXaCSGFU6cSzPtEnVBjRkalIuH3ta+UPzzgvMGbKdfE2x7Gqjz gHwkvJExWnUlvex/kJ0PUI9bLRfZ1+5PX8KUnnBsveHbmrI/ygBqRM7U6ekXNrXAND+O rB5yr0gwPwAIP2iZSP2hBUsSDOAZqevDMUwiT65cZD2nF0Ga0ecxQCpiIakUlIMbkB9a iqCo2anRQCqZzI52nSA+7ErsYWV4OLjoJqivJHF1Q6ndJX1nXBQYwr6hZRfV62TX2qT6 +3qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=twosheds.20170209 header.b=vub9PQuP; 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 k132si9096423pgc.18.2018.01.21.05.28.07; Sun, 21 Jan 2018 05:28:23 -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=fail header.i=@infradead.org header.s=twosheds.20170209 header.b=vub9PQuP; 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 S1751178AbeAUN1n (ORCPT + 99 others); Sun, 21 Jan 2018 08:27:43 -0500 Received: from twosheds.infradead.org ([90.155.92.209]:48882 "EHLO twosheds.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766AbeAUN1m (ORCPT ); Sun, 21 Jan 2018 08:27:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=twosheds.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:To:From:Subject:Date:References:In-Reply-To: Message-ID:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=w+1sVOSCt/ga3aPFrB72z+VsE94wYtFoDWwm1mJ7+0A=; b=vub9PQuP8zzp9kA/55lk9XzCR PmjLJRYgHTRTV/eQKlylaQE/Rn9xcg0/ctuEHGI+WuoTmcRuZQdwd6S+YRR/eAea131nXuzuKC2ek PRcibhEPNij3sNGEZgHdwfsr9qGJeBhVcOm56Bz4gPDJotM6fr6RqhdoeWeatP0826mUmkAf3eg6d 6d16tyyq1FHFsskjdEQv172TpF3GuHlj8UjHATOBNkp//kPQf71Xn2JNDeTPfvwItO10x/RR7OaQE C7mZYCRpP+G7zn21P59vv5fQqA22OynX8OF98gVSFJAZDmnVCvO8kAyVHy5NacdYqthi4iffCPcTR AaXEMSPnA==; Received: from localhost ([127.0.0.1] helo=twosheds.infradead.org) by twosheds.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1edFej-0001WN-Gv; Sun, 21 Jan 2018 13:27:30 +0000 Received: from 86.142.97.146 (SquirrelMail authenticated user dwmw2) by twosheds.infradead.org with HTTP; Sun, 21 Jan 2018 13:27:30 -0000 Message-ID: <2100854a140a0758f4e0c70e80e22701.squirrel@twosheds.infradead.org> In-Reply-To: References: <1516528149-9370-1-git-send-email-dwmw@amazon.co.uk> <1516528149-9370-4-git-send-email-dwmw@amazon.co.uk> Date: Sun, 21 Jan 2018 13:27:30 -0000 Subject: Re: [PATCH v2 3/8] x86/msr: Add definitions for new speculation control MSRs From: "David Woodhouse" To: "Jiri Slaby" Cc: "David Woodhouse" , 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 User-Agent: SquirrelMail/1.4.22-21.fc27 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-SRS-Rewrite: SMTP reverse-path rewritten from by twosheds.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 01/21/2018, 10:49 AM, David Woodhouse wrote: >> 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 >> --- >> arch/x86/include/asm/msr-index.h | 11 +++++++++++ >> 1 file changed, 11 insertions(+) >> >> diff --git a/arch/x86/include/asm/msr-index.h >> b/arch/x86/include/asm/msr-index.h >> index fa11fb1..3e50463 100644 >> --- a/arch/x86/include/asm/msr-index.h >> +++ b/arch/x86/include/asm/msr-index.h >> @@ -42,6 +42,13 @@ >> #define MSR_PPIN_CTL 0x0000004e >> #define MSR_PPIN 0x0000004f >> >> +#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_IA32_PERFCTR0 0x000000c1 >> #define MSR_IA32_PERFCTR1 0x000000c2 >> #define MSR_FSB_FREQ 0x000000cd >> @@ -60,6 +67,10 @@ >> #define MSR_IA32_BBL_CR_CTL 0x00000119 >> #define MSR_IA32_BBL_CR_CTL3 0x0000011e >> >> +#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 */ > > Is there any reason why all 3 are not properly sorted? > 0x04e > 0x048 > 0x119 > 0x10a Er... no good reason. I was definitely *trying* to put them in the right place. I plead incompetence; will fix... -- dwmw2