Received: by 10.223.185.116 with SMTP id b49csp700178wrg; Wed, 14 Feb 2018 05:46:09 -0800 (PST) X-Google-Smtp-Source: AH8x2244GkDyQDjec0FUja4Z82k9op415/3wgXcdF4Zlv15qC1ZeFQwv9M5XAHIOQx0o5EiVti5p X-Received: by 10.98.162.25 with SMTP id m25mr4756346pff.136.1518615969783; Wed, 14 Feb 2018 05:46:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518615969; cv=none; d=google.com; s=arc-20160816; b=x2Sa6UJ3UrH0OjQvN/auK35NtbOdGbZByeg0S5xAoQMwMp16baezwsgd4F7HDwHOee rTNvhsElhnYPMeNoEOvh44Xf3/6GIH1eS3/ZFJB1u46m2B9eE9P0z9KyXuFvtoj++q7g d2dRp9zEft/y+u1ueg6QdaM3YqitVUucTisuogfOcYQCMLNSFBt9ULIklqKEMFKDotrh a9zBpDfs8bOTjIaY5AUi+7QlmeU451ArWJpJ/tqn3BglwDsBIK0kCMxeTYoOv+BBpXEx GBYPfhiXTV3Z7+KvHBLTz+klI6erh1V11NRNo+di7NH8aG+nksT1Q5fwiOposGt6T8tX 1F8A== 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=d9wN62PUe/7osRjPoz9TNEHRe3g4i3cm3ZsBi2fyRZY=; b=qdiiBl+YRqc4xlWjs0EOrmLqQWYvWyAwnVTibfxiEURZd0pNND1egyoVuu2o8Wm0vl 7BW8aiaqxYNpJTLXUe4mshzyWq0i8nKS3SdnrBMrGjlVX8LAH8kS4RKnQPzU+zq7pp15 Bsd1o3kNAaAyYli6526ohOgiD7cyCkmmcZRzgny/BFUol/TxrCyR97O99+ls4yFBBm4T Uxf/UMSNm2ASY0kkCKev0o8T4d56+NTvHaVYykTCGmGyi8GqSH9T6/lChq5QUlsllYMl W5qAC3xvq0+i+ZCpLYw9l30szGru8Icu2Z4HZnnhESPIHKZsbyEtQHnNzPLwttSUDbrt P9iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.co.uk header.s=amazon201209 header.b=VLkkfuFL; 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 t7si1142912pfh.290.2018.02.14.05.45.54; Wed, 14 Feb 2018 05:46:09 -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=VLkkfuFL; 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 S1030482AbeBNNov (ORCPT + 99 others); Wed, 14 Feb 2018 08:44:51 -0500 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:36893 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030252AbeBNNot (ORCPT ); Wed, 14 Feb 2018 08:44:49 -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=1518615889; x=1550151889; h=from:to:subject:date:message-id; bh=d9wN62PUe/7osRjPoz9TNEHRe3g4i3cm3ZsBi2fyRZY=; b=VLkkfuFLGS+7BO+ebByLPR+u/1+qBoKypSeplUDb2L5Bpr9/2b8A8Yqq hgULlz8bLyPvHT4siB3fQUhBe2Q5DUXb6SZmwlxQM3V6IaUySbr5HwMRQ d+oyQpooaNrBSIlGSKAG4N+zkDcp2TsCeVjZtG3MwiPvfZkEB/l9M9bt7 E=; X-IronPort-AV: E=Sophos;i="5.46,512,1511827200"; d="scan'208";a="331983300" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1d-9ec21598.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; 14 Feb 2018 13:44:48 +0000 Received: from uc8d3ff76b9bc5848a9cc.ant.amazon.com (iad1-ws-svc-lb91-vlan3.amazon.com [10.0.103.150]) by email-inbound-relay-1d-9ec21598.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id w1EDieLA043818 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Feb 2018 13:44:42 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 w1EDidUA014256; Wed, 14 Feb 2018 13:44:39 GMT Received: (from dwmw@localhost) by uc8d3ff76b9bc5848a9cc.ant.amazon.com (8.15.2/8.15.2/Submit) id w1EDicYS014255; Wed, 14 Feb 2018 13:44:38 GMT From: David Woodhouse To: tglx@linutronix.de, karahmed@amazon.de, x86@kernel.org, kvm@vger.kernel.org, torvalds@linux-foundation.org, pbonzini@redhat.com, linux-kernel@vger.kernel.org, bp@alien8.de, peterz@infradead.org, jmattson@google.com, rkrcmar@redhat.com, arjan.van.de.ven@intel.com, dave.hansen@intel.com, mingo@kernel.org Subject: [PATCH 0/4] Speculation control improvements Date: Wed, 14 Feb 2018 13:44:30 +0000 Message-Id: <1518615874-13806-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 A revised version of the dropped IBRS-firmware patch which now just ignores the horrid hpwdt driver completely, and explicitly disables preemption while IBRS is set. Revised version of the IBRS_ALL patch with a typo fixed, revert another broken bikeshedding patch, and add support for retpoline builds with clang now that clang is fixed. David Woodhouse (4): x86/speculation: Use IBRS if available before calling into firmware x86/speculation: Support "Enhanced IBRS" on future CPUs Revert "x86/retpoline: Simplify vmexit_fill_RSB()" x86/retpoline: Support retpoline build with Clang arch/x86/Makefile | 5 +- arch/x86/entry/entry_32.S | 3 +- arch/x86/entry/entry_64.S | 3 +- arch/x86/include/asm/apm.h | 6 ++ arch/x86/include/asm/asm-prototypes.h | 3 - arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/asm/efi.h | 17 ++++- arch/x86/include/asm/nospec-branch.h | 118 +++++++++++++++++++++++++++++----- arch/x86/kernel/cpu/bugs.c | 26 +++++++- arch/x86/kvm/vmx.c | 31 +++++---- arch/x86/lib/Makefile | 1 - arch/x86/lib/retpoline.S | 56 ---------------- include/linux/compiler-clang.h | 5 ++ include/linux/compiler-gcc.h | 4 ++ include/linux/init.h | 8 +-- 15 files changed, 185 insertions(+), 102 deletions(-) -- 2.7.4