Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3129133ybb; Sun, 22 Mar 2020 16:18:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vua3iGoUiGFLfFuigGJ6ZcIbm0cGBeK/E2CazsnO3o1bv1T81sIVj27iyfCTeq89G/J/l16 X-Received: by 2002:a9d:6b02:: with SMTP id g2mr337587otp.340.1584919128954; Sun, 22 Mar 2020 16:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584919128; cv=none; d=google.com; s=arc-20160816; b=JwVnMmBPja8BAxaJ5jOIJPlZWir49j1IqQW8dh9Gv2qfhcfiUj8/ZRIlB9cFQRzmPm e3XbzH9bToVKHUvuWWfv6puh5trXL2zvwdJQb9n+SdDeUj18Bu4SyXKFgToiZ45znIsU glEkGFVey6Jw7dyQsflvktBIdlL+5pwIG9u+8QHqpTdBp9GjeE9XoMGe3IvmcW5tyZZX qEz5z55XGPYL2Mb8+L/FASjJ7teUHmwk1DvoecblCk+sepeu+DATf2B14FaV2XHkHT7/ xFYwSXiQyFnZNhk9af/V5u1XddeBI63wDSeKeR81Ns+2y1IeLCAEC90cec04n+uBMdbv IBgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:cc:to:from:thread-topic:subject :ironport-sdr:dkim-signature; bh=NWWujVvKBsYuQnE25EfOxyG+Ag9go0PlW2vd+guccGQ=; b=OSr/v4fIVzxvS0MYgH4pbCPpale7EkcjVNJcX0bdXNN8Kn5m4Hlu7rgR738Su2abMk YaUTPAKV4X1hy62UPN+ULsmz3zN/v5/LSkX30Lm8GOoutXR/EIIEjcB+8nxFgHiF/ZN9 H9yBE7+JrI3jLzoE+3zi7+33Nb3Fewiwj5DpT0sL04EEvQraAVJ/imjQFtUj4HNHF0c+ o/fFPA5ictuMrmXn4z57QznP/2jO8JHFkG87CBHI0eK5Tr71MwsK/RETQM7oa4/fqtb+ riaIPGQ2D9kQ8JihU0nQT6CIW1Wp+/iROpR7mr5NF228eDqhL9myJMRxLDBl/rLe89rI cNkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b="SHq/JyC7"; 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.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t185si5108466oie.70.2020.03.22.16.18.34; Sun, 22 Mar 2020 16:18:48 -0700 (PDT) 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.com header.s=amazon201209 header.b="SHq/JyC7"; 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.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726869AbgCVXRg (ORCPT + 99 others); Sun, 22 Mar 2020 19:17:36 -0400 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:6584 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726814AbgCVXRg (ORCPT ); Sun, 22 Mar 2020 19:17:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1584919055; x=1616455055; h=from:to:cc:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version:subject; bh=NWWujVvKBsYuQnE25EfOxyG+Ag9go0PlW2vd+guccGQ=; b=SHq/JyC7z1WlpAxNupO0z2e+ODlBTEzMLpi4VvhpxfowgqqiO6BF6x20 sa2S7rIvN7S5YimJHFE/qBr8dFh6LAE7oVaa9tybP/S0/5OIsxxajleC0 fj8S2Cw2brt27hGqNWn+HRwHFFyogvP0g550lNaBs162LMF93kFs0Hclv k=; IronPort-SDR: psMJdEHhn9HE1lORvN+HIndleyDmvT/ccFO2oqeZqIozXUfBQIrCSR+fnREZ83khQfsIJ6Dkbe Om2lC4pQDTHw== X-IronPort-AV: E=Sophos;i="5.72,294,1580774400"; d="scan'208";a="22240729" Subject: Re: [RFC PATCH] arch/x86: Optionally flush L1D on context switch Thread-Topic: [RFC PATCH] arch/x86: Optionally flush L1D on context switch Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2c-1968f9fa.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP; 22 Mar 2020 23:17:22 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2c-1968f9fa.us-west-2.amazon.com (Postfix) with ESMTPS id 1827EA2808; Sun, 22 Mar 2020 23:17:22 +0000 (UTC) Received: from EX13D01UWB003.ant.amazon.com (10.43.161.94) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 22 Mar 2020 23:17:21 +0000 Received: from EX13D21UWB003.ant.amazon.com (10.43.161.212) by EX13d01UWB003.ant.amazon.com (10.43.161.94) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 22 Mar 2020 23:17:21 +0000 Received: from EX13D21UWB003.ant.amazon.com ([10.43.161.212]) by EX13D21UWB003.ant.amazon.com ([10.43.161.212]) with mapi id 15.00.1497.006; Sun, 22 Mar 2020 23:17:21 +0000 From: "Herrenschmidt, Benjamin" To: "luto@amacapital.net" CC: "tglx@linutronix.de" , "linux-kernel@vger.kernel.org" , "keescook@chromium.org" , "Singh, Balbir" , "x86@kernel.org" Thread-Index: AQHWAAfn6i+PyJUPFk+FYFtSBQE7c6hUt/uAgACIBoA= Date: Sun, 22 Mar 2020 23:17:21 +0000 Message-ID: <0eb0804b3061ddd52fe7736b0ae124234581a9dc.camel@amazon.com> References: <99ef5eec8502a7b53eee362063b9b2252a5a47da.camel@amazon.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.162.173] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gU3VuLCAyMDIwLTAzLTIyIGF0IDA4OjEwIC0wNzAwLCBBbmR5IEx1dG9taXJza2kgd3JvdGU6 DQo+IA0KPiBMZXQgbWUgdHJ5IHRvIHVuZGVyc3RhbmQgdGhlIGlzc3VlLiBUaGVyZSBpcyBzb21l IGhpZ2gtdmFsdWUgZGF0YSwNCj4gYW5kIHRoYXQgZGF0YSBpcyBvd25lZCBieSBhIGhpZ2gtdmFs dWUgcHJvY2Vzcy4gQXQgc29tZSBwb2ludCwgdGhlDQo+IGRhdGEgZW5kcyB1cCBpbiBMMUQuICBM YXRlciBpbiwgZXZpbCBjb2RlIHJ1bnMgYW5kIG1heSBhdHRlbXB0IHRvDQo+IGV4ZmlsdHJhdGUg IHRoYXQgZGF0YSBmcm9tIEwxRCB1c2luZyBhIHNpZGUgY2hhbm5lbC4gKFRoZSBldmlsIGNvZGUN Cj4gaXMgbm90IG5lY2Vzc2FyaWx5IGluIGEgbWFsaWNpb3VzIHByb2Nlc3MgY29udGV4dC4gSXQg Y291bGQgYmUga2VybmVsDQo+IGNvZGUgdGFyZ2V0ZWQgYnkgTFZJIG9yIHNp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