Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3181973ybb; Sun, 22 Mar 2020 17:45:04 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuraw3AZZG6j7IpCPXOOBQQxakcj50G6kflQ2q/NO35eLbGtjKSt65MwdAZsfK3XaGMh+Sp X-Received: by 2002:aca:d78a:: with SMTP id o132mr1667528oig.60.1584924304187; Sun, 22 Mar 2020 17:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584924304; cv=none; d=google.com; s=arc-20160816; b=LHpXbPy6b/oUfuwmyAIqxN9gW/8gWNFJ7o+2eAfqnIMrs1i8Gz13U3ke3IXfp3UJh0 kLdrdoGV1MnenRlZNTr6jw4COr53pw8sYRuYEp3u20WXdlUH0+W6EqpnvZTfzQRiab3o slUTlAULsmGJBktcruVUyJ0lPVJBeb8IUjpRf/5upxu7HEtfPiVahtO2O66mBA9p+kaR CtX/8UEyYdukEsaQe2UTT3c1g86N2Qv3hvH62P6bqMf7sWDKkKGh2NvBRZH4UYh92VxH A8pfI6lnlEt8M4fjMPs9uEw+YxJanTY82EI0KBl3RwFj9FS+W6XUx99Cq6oi2ncQ8+2f A/iQ== 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=eC6GiOWyrV8K8nGwvhxY8RkctZWCYShOErC7ULjrp2o=; b=f1SZ8IYiqz+AjDcXsXm9sWehUK1iY1nwB7Nl2sw9Ktucqf7gRSog6/+kCXq6hbfRK1 y9RK/K2ZHtotG0liMbHRVi+qYbS/oLn7euLrP9rJ7ChClgWsn0NndYpGNSbzefJxR/KP KsLKMZZ13mJXhBsPrMLLaP3whaOqsndcST/zn/Bj2lYRLrQDoEIsArOGGwGcBOQIMwCy 4XoOCyYF4LnYRqwQsEFvYmFrdyh/BlChYe9DiSrdo1BPB8D5sKQAoo1XzYA4Y/jNWqt5 /rW6ju9fQ7zXab6yyBMFonawzhHSX7Ez6qmkCGQsJp9y5/NrOjSPbMhU3YSHtra2hf8Y uFZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=aZVaBHnS; 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 127si6725405oig.130.2020.03.22.17.44.21; Sun, 22 Mar 2020 17:45:04 -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=aZVaBHnS; 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 S1726945AbgCWAh4 (ORCPT + 99 others); Sun, 22 Mar 2020 20:37:56 -0400 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:60872 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726902AbgCWAhz (ORCPT ); Sun, 22 Mar 2020 20:37:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1584923874; x=1616459874; h=from:to:cc:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version:subject; bh=eC6GiOWyrV8K8nGwvhxY8RkctZWCYShOErC7ULjrp2o=; b=aZVaBHnSTTsKjUy0AdqF4BefzmzHZrmFhNoTbedGa6jwSQWKNgaPuXeW kKCmXRjaYXeht+g/gnZdssQFbuWkCKcwxP7wMECeZKdCPsifTlRlqJppH e8V3on6tv1FPJwPY0YmtLUgKhMwpvUpubhRH/EcspaO5m4wv7wPZ7qAEz A=; IronPort-SDR: tnaYsqehyIe+z0lJ0hRwG4DXuUyKiBLC56X6AWCBcvn4B2IZtb+kIlfTvGnSl9v0v5iQNlEpxP 3r2Kj6DgUCcw== X-IronPort-AV: E=Sophos;i="5.72,294,1580774400"; d="scan'208";a="22411668" 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-1a-16acd5e0.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 23 Mar 2020 00:37:41 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1a-16acd5e0.us-east-1.amazon.com (Postfix) with ESMTPS id C9F96A2803; Mon, 23 Mar 2020 00:37:39 +0000 (UTC) Received: from EX13D21UWB003.ant.amazon.com (10.43.161.212) by EX13MTAUWB001.ant.amazon.com (10.43.161.207) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 23 Mar 2020 00:37:38 +0000 Received: from EX13D01UWB002.ant.amazon.com (10.43.161.136) by EX13D21UWB003.ant.amazon.com (10.43.161.212) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 23 Mar 2020 00:37:38 +0000 Received: from EX13D01UWB002.ant.amazon.com ([10.43.161.136]) by EX13d01UWB002.ant.amazon.com ([10.43.161.136]) with mapi id 15.00.1497.006; Mon, 23 Mar 2020 00:37:38 +0000 From: "Singh, Balbir" To: "tglx@linutronix.de" , "linux-kernel@vger.kernel.org" CC: "keescook@chromium.org" , "Herrenschmidt, Benjamin" , "x86@kernel.org" Thread-Index: AQHV+YNfBeR2nut5dUuur/1Y5KcywKhPGnoAgAFvAYCAAN6oAIAA6NAAgACMiQCAAoXEgA== Date: Mon, 23 Mar 2020 00:37:38 +0000 Message-ID: <7f8c5bc895c9f40c443bcb48e4e0e8cb2b4366fe.camel@amazon.com> References: <20200313220415.856-1-sblbir@amazon.com> <87imj19o13.fsf@nanos.tec.linutronix.de> <97b2bffc16257e70b8aa98ee86622dc4178154c4.camel@amazon.com> <8736a3456r.fsf@nanos.tec.linutronix.de> <034a2c0e2cc1bb0f4f7ff9a2c5cbdc269a483a71.camel@amazon.com> <87d096rpjn.fsf@nanos.tec.linutronix.de> In-Reply-To: <87d096rpjn.fsf@nanos.tec.linutronix.de> Accept-Language: en-GB, 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.161.244] 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 SGksIFRob21hcywNCg0KT24gU2F0LCAyMDIwLTAzLTIxIGF0IDExOjA1ICswMTAwLCBUaG9tYXMg R2xlaXhuZXIgd3JvdGU6DQo+IA0KPiANCj4gQmFsYmlyLA0KPiANCj4gIlNpbmdoLCBCYWxiaXIi IDxzYmxiaXJAYW1hem9uLmNvbT4gd3JpdGVzOg0KPiA+IE9uIEZyaSwgMjAyMC0wMy0yMCBhdCAx Mjo0OSArMDEwMCwgVGhvbWFzIEdsZWl4bmVyIHdyb3RlOg0KPiA+ID4gSSBmb3Jnb3QgdGhlIGdv cnkgZGV0YWlscyBieSBub3csIGJ1dCBoYXZpbmcgdHdvIGVudHJ5IHBvaW50cyBvciBhDQo+ID4g Pi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