Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp103109ybk; Tue, 19 May 2020 16:43:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWrpr93PfoCKRkPTkl1bdjRx+aYLaxW8Obdc0GqHwy7AUHYG+MfUBKoixVZPAW98mntlft X-Received: by 2002:a50:8dc2:: with SMTP id s2mr1061297edh.318.1589931818626; Tue, 19 May 2020 16:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589931818; cv=none; d=google.com; s=arc-20160816; b=b0Mi3nS/iBqI60zdIa9bcRoBy7pbn3FeUhOFE3J7R1+KQIArCzthQqw5W7UAWicuho l+0kD30+bNgywA9oXJxtNMBReYjJRT477kd5iQeN+P4JldmhQhzG8xbWruqWYmsPLtZa u6IhJIt272RPPXgxw/donYSrvojuCDb0K0hZOAw7FbwsTzoys5fyI72lsi5oTH3lTSZ3 ioAiJbaK+3msBYQLQYcWq8uSagUaSVdGtQq7zCf6wx/dfs4wUf/BpzFJ9YOF2lQfljdI KQi4nfPP717a2GAn8+qVjOIjDu03//fgeBwUCg6fTALs1v5BmXSSQMCen0yaueFdOlPG hEww== 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=IbofWm/iMK1clAzyzSw2peC3VqkfUtxWdtzUMhauRHg=; b=h3wW8jldA8yVyzCotzAnCqP4DRycIsPIH5eD+0TPbOK1VEh722GF88RmuMZNPB+jOn szy8/pqg4ivPgIaXoonLp1SAZJa9wJFrKBBSVE7+3f953849+XMJ4qpIXwDs90bZrlCq pk/ztB8k3TKqat0HyP0NmejdsXaxXOrmrfLfJvZp9YSd3ntHzMNQVaPnpVpVWWyUvmzy GGP4sp46cNYUHm7Rdy/GxhU4CayoxaFIn71vVAwEPyoE64Sc9k5dczOpUAg7tja6laKn vPBWyiOQhNFWYdDlMldwXVDycwM9TQ555dODaCBZq497+e/9PfRvpTkRpRonP5VdGE6T n27w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=IcOQERvZ; 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 x25si514914edl.429.2020.05.19.16.43.12; Tue, 19 May 2020 16:43:38 -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=IcOQERvZ; 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 S1726379AbgESXll (ORCPT + 99 others); Tue, 19 May 2020 19:41:41 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:18724 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725998AbgESXlk (ORCPT ); Tue, 19 May 2020 19:41:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1589931699; x=1621467699; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=IbofWm/iMK1clAzyzSw2peC3VqkfUtxWdtzUMhauRHg=; b=IcOQERvZLpaLBjlINgQ/Ozi5CeP56g2auc46asNOtP2cgT1KuNzKoDo0 GTF3aWELkyYXEODo8KYmZx1ROe3t+jfe94dByTU3GKwQ+paeFJTozKoz/ WgCFvt6cDOa9ZB9G+joaQsGhkf3ZXFF5NidIC7y5GX9UV+H/3VD5HfeHr g=; IronPort-SDR: T2gMicTsA/YT1+502F/BdDjy6yNGh0uOnQy64MbhC76QxzxW4whNhw+NBv0bmUGwIrqbQmDqwn 7G6ahSvy7dpw== X-IronPort-AV: E=Sophos;i="5.73,411,1583193600"; d="scan'208";a="32498591" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1a-e34f1ddc.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 19 May 2020 23:41:27 +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-e34f1ddc.us-east-1.amazon.com (Postfix) with ESMTPS id E6358A0360; Tue, 19 May 2020 23:41:24 +0000 (UTC) Received: from EX13D01UWB003.ant.amazon.com (10.43.161.94) by EX13MTAUWB001.ant.amazon.com (10.43.161.207) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 19 May 2020 23:41:24 +0000 Received: from EX13D01UWB002.ant.amazon.com (10.43.161.136) by EX13d01UWB003.ant.amazon.com (10.43.161.94) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 19 May 2020 23:41:23 +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; Tue, 19 May 2020 23:41:23 +0000 From: "Singh, Balbir" To: "keescook@chromium.org" CC: "tglx@linutronix.de" , "linux-kernel@vger.kernel.org" , "tony.luck@intel.com" , "benh@kernel.crashing.org" , "jpoimboe@redhat.com" , "x86@kernel.org" , "dave.hansen@intel.com" Subject: Re: [PATCH v2 3/4] arch/x86: Optionally flush L1D on context switch Thread-Topic: [PATCH v2 3/4] arch/x86: Optionally flush L1D on context switch Thread-Index: AQHWLjcBCjTHsBVi1Ear3DlyXwRTeA== Date: Tue, 19 May 2020 23:41:23 +0000 Message-ID: <1236b19be51d0d47ba73016b2bac352983107ce9.camel@amazon.com> References: <20200406031946.11815-1-sblbir@amazon.com> <20200406031946.11815-4-sblbir@amazon.com> <202004071125.605F665@keescook> In-Reply-To: <202004071125.605F665@keescook> 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.160.26] Content-Type: text/plain; charset="utf-8" Content-ID: <00FAC354435987408F59F82E70E2817A@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 T24gVHVlLCAyMDIwLTA0LTA3IGF0IDExOjI2IC0wNzAwLCBLZWVzIENvb2sgd3JvdGU6DQo+IA0K PiANCj4gT24gTW9uLCBBcHIgMDYsIDIwMjAgYXQgMDE6MTk6NDVQTSArMTAwMCwgQmFsYmlyIFNp bmdoIHdyb3RlOg0KPiA+IEltcGxlbWVudCBhIG1lY2hhbmlzbSB0byBzZWxlY3RpdmVseSBmbHVz aCB0aGUgTDFEIGNhY2hlLiBUaGUgZ29hbCBpcyB0bw0KPiA+IGFsbG93IHRhc2tzIHRoYXQgYXJl IHBhcmFub2lkIGR1ZSB0byB0aGUgcmVjZW50IHNub29wIGFzc2lzdGVkIGRhdGEgc2FtcGxpbmcN Cj4gPiB2dWxuZXJhYmlsaXRlcywgdG8gZmx1c2ggdGhlaXIgTDFEIG9uIGJlaW5nIHN3aXRjaGVk IG91dC4gIFRoaXMgcHJvdGVjdHMNCj4gPiB0aGVpciBkYXRhIGZyb20gYmVpbmcgc25vb3BlZCBv ciBsZWFrZWQgdmlhIHNpZGUgY2hhbm5lbHMgYWZ0ZXIgd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