Received: by 10.223.176.46 with SMTP id f43csp4400936wra; Tue, 23 Jan 2018 08:56:02 -0800 (PST) X-Google-Smtp-Source: AH8x224cT6kFaL9FvQLBj6K3eF6v5lbTamfctFJfKQ0D1e7oSQmbBtmbWSZ+xM6vl0o2ONz8709T X-Received: by 10.36.79.129 with SMTP id c123mr4349951itb.29.1516726562321; Tue, 23 Jan 2018 08:56:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516726562; cv=none; d=google.com; s=arc-20160816; b=oC52LL/jBzXUnvN6em8McBcVflVlm1ZSgQ0WTwy9qQHoJrbzOZnZWF6fzDguidu58Z ODWUtOuE+CzZx1rSOxxUZTbYAIixb4ezJXvLsIBvlGYCwZ4ulhWa84PGkvqD2sJmavBa 5Qqk5QAaS5rH+hNSgzNe7D7fyoRIux5h/NPqnX4iBjWgDhWo/cqj9hiVSKRY6cRlP2HM lfGN6pMI5BDraqcpJXeEl6t6AD8RtA2+8uHYt+XoMxiXMIhyEC4xefcy6rkb+p14eKhK c9RquUKtwSbLT62TJWvpSuSXQESXtujI+qwLnnprw3MSzxrG5nzjAYT3aoJTS3H/JzaX lyLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=IQdAhGnm654vRNq5oDbetwEvYjGvxo8xDKIii8T3p1A=; b=a/JT+EKo7qdNw3PqRDps7akWBK/C/TOvdLCrwSUI2wBInVYizCq8nVyrt5EVKXKPa0 qyHfZPWzCoPcz/NgvlGZWEpEX5N7WaXstjJvcCqf8jpTRaPYNT5/kgkhKQp0N4mST+lw NwbMBiyWiDMQ7+r7VhympZjt0z7nG5YDv1CVLAEN0miEDLPjQeIil3L2eRaFKt/5q7qm b5u/7KuKB3MP2/amC8SR5SfkhKZ62jOjyDesIm+pnNCt+cbGWk/1p3jR/oriYEUaFL0p NaF2CnyddrAjyjn99Yvz8WsjhPTbhO3QVIphBZE4PwrZMTozEViwKk5s6Mm0RgiwxDFe E2Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=Xau1XH/5; 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 c66si16764070iof.274.2018.01.23.08.55.49; Tue, 23 Jan 2018 08:56:02 -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=Xau1XH/5; 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 S1751367AbeAWQxR (ORCPT + 99 others); Tue, 23 Jan 2018 11:53:17 -0500 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:56706 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751228AbeAWQxQ (ORCPT ); Tue, 23 Jan 2018 11:53:16 -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=1516726396; x=1548262396; h=from:to:subject:date:message-id; bh=IQdAhGnm654vRNq5oDbetwEvYjGvxo8xDKIii8T3p1A=; b=Xau1XH/5v1CMetJeSJeiZdCKSZ51ba2Jgbz1pH7KdF362nM6ETgpK19F m/Aum8L79jAuZGWRp883NrtBPG56yQdg474sx99feDrPJpkipIPDh22q8 bY8VKd+QS2c+0UNWBBZZIo7cLkf0IjFXAmAl+NXlh9pv4CDTgx1SrteOU k=; X-IronPort-AV: E=Sophos;i="5.46,402,1511827200"; d="scan'208";a="704943306" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1d-74cf8b49.us-east-1.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Jan 2018 16:53:16 +0000 Received: from uc8d3ff76b9bc5848a9cc.ant.amazon.com (iad1-ws-svc-lb91-vlan2.amazon.com [10.0.103.146]) by email-inbound-relay-1d-74cf8b49.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w0NGr50A130033 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Jan 2018 16:53:08 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 w0NGr3fi025564; Tue, 23 Jan 2018 16:53:03 GMT Received: (from dwmw@localhost) by uc8d3ff76b9bc5848a9cc.ant.amazon.com (8.15.2/8.15.2/Submit) id w0NGr2PD025560; Tue, 23 Jan 2018 16:53:02 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, thomas.lendacky@amd.com Subject: [PATCH v2 0/5] Basic Speculation Control feature support Date: Tue, 23 Jan 2018 16:52:50 +0000 Message-Id: <1516726375-25168-1-git-send-email-dwmw@amazon.co.uk> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Baby steps... this is just the basic CPUID and MSR definitions for AMD and Intel, followedby the complete no-brainer: Disable KPTI on Intel CPUs which set the RDCL_NO bit to say that they don't need it. David Woodhouse (5): x86/cpufeatures: Add CPUID_7_EDX CPUID leaf x86/cpufeatures: Add Intel feature bits for Speculation Control x86/cpufeatures: Add AMD feature bits for Speculation Control x86/msr: Add definitions for new speculation control MSRs x86/pti: Do not enable PTI on fixed Intel processors arch/x86/include/asm/cpufeature.h | 7 +++++-- arch/x86/include/asm/cpufeatures.h | 14 +++++++++++--- arch/x86/include/asm/disabled-features.h | 3 ++- arch/x86/include/asm/msr-index.h | 12 ++++++++++++ arch/x86/include/asm/required-features.h | 3 ++- arch/x86/kernel/cpu/common.c | 11 +++++++++-- arch/x86/kernel/cpu/scattered.c | 2 -- 7 files changed, 41 insertions(+), 11 deletions(-) -- 2.7.4