Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1146504ybk; Thu, 14 May 2020 01:25:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRUwP2M3N5OWr3bVKRW3BhoXjzs3myamOpo4AEnCh2sGaH8OESOmzGnMIBNtjUeOPpBe/N X-Received: by 2002:a05:6402:21f9:: with SMTP id ce25mr2898586edb.85.1589444729355; Thu, 14 May 2020 01:25:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589444729; cv=none; d=google.com; s=arc-20160816; b=LCNrtCuJsm/AZ2Enbu6SZPR4zk7EKRI13BMQsf/vURPxAXtCgBWDUPsOyeN6qip0Mt LktVQhrr/vTIhupqKejhEoQj8MUMvb61RGB9LGhD339pEoZuMzMtvi6Mfq7po52/vRmo lNAg0dhtsQ/W9VrAADHiOHWpvgRkg8n5qn+t4/uKQ92j7gXyU9JEv+0j50LSQF9BZdVG N7vUtxttNNvmOD1Wfcx5VOGbhbNI7JkAccGdQzWQdc9r3Ks9Yuwb7+2vYyJtmVyluZaC SF8bkMvK4TcjZIjhh5FXyLEgMFkGkqpOWsyU9bKGAs9oThaw0CL4IIN9hcyyd1v6fkL7 GciQ== 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:thread-topic:subject:cc:to:from :ironport-sdr:dkim-signature; bh=eRDw/4/IL7g0HUieh/1u9Y5zK3LbJDluY9cF5E4S5zs=; b=aQKA3E4+alFj/iYoa1YSM6MoIdOa59K0VbQGt7nkTbstaukH37uaQCX9n89VNt87a6 8XlQhoHBAh6Sx/GIaaObct96Yuhj034onfKqbfZkbPsaRbu1wvMhaCCDnIPKBuStePI0 VJXyL5WKxQ+qmnl5d1nQJ4kkFi0YgrMNFSgx6h/zdxFpQuuVkKXr0lG6adAIOAG0aeZO LG3Uxvf8jgUTut979Fm7VsTPrLlmw1+RLlfjeASjQpGel/8vADplxAKUi0CsVo9jw6e4 Y2ko09Gq90E63zwP079/Lqt2OGZafkEjj93RUCX1w0xEAOZM6vkry8Nx4ZBrCcklECPh u99Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=ZMpe8xQQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a3si1119592edv.206.2020.05.14.01.25.06; Thu, 14 May 2020 01:25:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=ZMpe8xQQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726010AbgENIXg (ORCPT + 99 others); Thu, 14 May 2020 04:23:36 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:62836 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbgENIXg (ORCPT ); Thu, 14 May 2020 04:23:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1589444616; x=1620980616; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=eRDw/4/IL7g0HUieh/1u9Y5zK3LbJDluY9cF5E4S5zs=; b=ZMpe8xQQLyatNtaesvBrdHE7GgFePC51/Ndc3Vq3QM55sy3eZiRrUM9d XMyxciMUE4hLDxYV8Itq2Gd4Cggm+BqeSvxi8gMuIGJhrEXGWP9vaQOzn /MFK/4U+maL/qXO46iERazY0UEvFGtG+7nGsFWx3L6YVEODIo5QUfeYMW 4=; IronPort-SDR: ehFrTSnV93cjedzA2HIlRAo2Bjtg6no0WI0TdoB3Gnx5KHbCvJtZ17FzBmfis1WbEOCNmUJ2Ca nCL0lVK+lTOA== X-IronPort-AV: E=Sophos;i="5.73,390,1583193600"; d="scan'208";a="43317245" Received: from sea32-co-svc-lb4-vlan2.sea.corp.amazon.com (HELO email-inbound-relay-2c-2225282c.us-west-2.amazon.com) ([10.47.23.34]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 14 May 2020 08:23:34 +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-2225282c.us-west-2.amazon.com (Postfix) with ESMTPS id 419FAA2571; Thu, 14 May 2020 08:23:33 +0000 (UTC) Received: from EX13D01UWB004.ant.amazon.com (10.43.161.157) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 14 May 2020 08:23:18 +0000 Received: from EX13D01UWB002.ant.amazon.com (10.43.161.136) by EX13d01UWB004.ant.amazon.com (10.43.161.157) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 14 May 2020 08:23:17 +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; Thu, 14 May 2020 08:23:11 +0000 From: "Singh, Balbir" To: "tglx@linutronix.de" , "linux-kernel@vger.kernel.org" CC: "keescook@chromium.org" , "thomas.lendacky@amd.com" , "tony.luck@intel.com" , "benh@kernel.crashing.org" , "jpoimboe@redhat.com" , "x86@kernel.org" , "dave.hansen@intel.com" Subject: Re: [PATCH v6 5/6] Optionally flush L1D on context switch Thread-Topic: [PATCH v6 5/6] Optionally flush L1D on context switch Thread-Index: AQHWKcjnTs0udErG4EGy2A5HDpHCKA== Date: Thu, 14 May 2020 08:23:11 +0000 Message-ID: References: <20200510014803.12190-1-sblbir@amazon.com> <20200510014803.12190-6-sblbir@amazon.com> <87d0773mg8.fsf@nanos.tec.linutronix.de> In-Reply-To: <87d0773mg8.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.162.215] Content-Type: text/plain; charset="utf-8" Content-ID: <489EA7F85D23DA45AB94430EB9362C48@amazon.com> 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 T24gV2VkLCAyMDIwLTA1LTEzIGF0IDE3OjA0ICswMjAwLCBUaG9tYXMgR2xlaXhuZXIgd3JvdGU6 DQo+IA0KPiANCj4gQmFsYmlyIFNpbmdoIDxzYmxiaXJAYW1hem9uLmNvbT4gd3JpdGVzOg0KPiA+ IA0KPiA+ICsgICAgIGlmIChwcmV2X21tICYgTEFTVF9VU0VSX01NX0wxRF9GTFVTSCkNCj4gPiAr ICAgICAgICAgICAgIGFyY2hfbDFkX2ZsdXNoKDApOyAvKiBKdXN0IGZsdXNoLCBkb24ndCBwb3B1 bGF0ZSB0aGUNCj4gPiBUTEIgKi8NCj4gDQo+IEJhaC4gSSBmdW5kYW1lbnRhbGx5IGhhdGUgdGFp bCBjb21tZW50cy4gVGhleSBhcmUganVzdCBkaXN0dXJiaW5nIHRoZQ0KPiByZWFkaW5nIGZsb3cu IEFzaWRlIG9mIHRoYXQsIHRoaXMgc3RhdGVzIHRoZSBXSEFUIGJ1dCBub3QgdGhlIFdIWS4gQ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