Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp76953ybb; Tue, 7 Apr 2020 17:16:49 -0700 (PDT) X-Google-Smtp-Source: APiQypKaHjz1yNlzKr0iWI9J9lEdNBtfEolDhYRpphXgHoJ8QPHkkIo6iux1jxj4gr+dfU1DheqQ X-Received: by 2002:a05:6830:1dfa:: with SMTP id b26mr3602879otj.13.1586305009668; Tue, 07 Apr 2020 17:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586305009; cv=none; d=google.com; s=arc-20160816; b=sUmADX6HkTPxsXZ8uXbbg4tNBXS67vzzWW08HV+J5o2ohLhVzy+mEg0XsPe3rqVIix GRTRONjUDDCr9/N3jGLKRxAVYkBlsybPNjRUXgwVxFLlM69MtQyFmkVeg88+6wiIh0f2 q7YClCNewTuO4ltL9v1naIbafGEb8nDKP69ZuWPz3K4GD4CjKT4aSf20VPtZlwryswxg UC/AhdAd7SiknTwuThctJZ4Gbngx97t6fP6Dvq/yzbM49EVYDx0MeUi4QbkNOoQd99fS rOPypvK6cTlyVEkBCVGLqoNsiMpDgfcuxhlZuTm2MVSiU0it8BeVvLs3Sy3R8AqPA73Y quKQ== 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=HldeFSSVUi4kbdiD8texuja1d//0E3JziItUIw9NKbU=; b=r0nEGCgG67CsKHChOwaWlPJrHSccKtK+VS1rdmRPYJoRMQJzs2j3gv2S6oTP6I9TzB deheMVyxeQ+3ih5T79d0Umui2I7FsywhzygWQRCbZiQ3HcGb0XqvRbZ+kF+KPkSMbV11 5MeIYhkxCFXTifDqQSrntFYla7pTelbEZQ2K3Wm6wSrA2ZNs9T0EZYn2y+PxUIvaVhaU HlDoX/dRIfy31Zp/FoBUpoWULSxOOnLsg9kaBjWhKQ1yLJykRxRw+ZOZvwSe2kfkEFhx ACCwIyXbDgjOzOrBVxvx37c68/qMnPNPUmLgPxZpeoT8yEOsZdlSfWdNqak0bC1efLVX j8lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=mrCcAyRv; 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 u9si1302107oia.62.2020.04.07.17.16.35; Tue, 07 Apr 2020 17:16:49 -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=mrCcAyRv; 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 S1726494AbgDHAOL (ORCPT + 99 others); Tue, 7 Apr 2020 20:14:11 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:15390 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726406AbgDHAOL (ORCPT ); Tue, 7 Apr 2020 20:14:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1586304850; x=1617840850; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=HldeFSSVUi4kbdiD8texuja1d//0E3JziItUIw9NKbU=; b=mrCcAyRvqeaT0FWIwpzEdeoFspcrYhzeF9eYe/AsK7QlmVGoCiSBuSWq xmJjk4eVnNYWN+xaIGIVZWzDBXmuvsIMRvN/IdZihdHwYta5xGinBhRFV Hdg7iSQ0CVkx+ugm0mIVrMjOQhEpJOv7zPkrkwqyz4j3lqGqbFkEaNCnX Y=; IronPort-SDR: 07C6nRvRXabtPud/3zjaww/pOxYGPeR6gV0ZMU/NLunb3OqBFfqMpP3v9lID2H9euqX/VORd9/ 2OhhcO883Fzg== X-IronPort-AV: E=Sophos;i="5.72,357,1580774400"; d="scan'208";a="37263382" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2a-53356bf6.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 08 Apr 2020 00:14:08 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2a-53356bf6.us-west-2.amazon.com (Postfix) with ESMTPS id 5A68AA1F1A; Wed, 8 Apr 2020 00:14:08 +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; Wed, 8 Apr 2020 00:14:04 +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; Wed, 8 Apr 2020 00:14:04 +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; Wed, 8 Apr 2020 00:14:04 +0000 From: "Singh, Balbir" To: "tglx@linutronix.de" , "linux-kernel@vger.kernel.org" CC: "keescook@chromium.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: AQHWDTqcWcoKwxiYQkqA/bhLw4lsnQ== Date: Wed, 8 Apr 2020 00:14:04 +0000 Message-ID: References: <20200406031946.11815-1-sblbir@amazon.com> <20200406031946.11815-4-sblbir@amazon.com> <87v9maj1kx.fsf@nanos.tec.linutronix.de> In-Reply-To: <87v9maj1kx.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.160.155] 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 T24gV2VkLCAyMDIwLTA0LTA4IGF0IDAxOjUyICswMjAwLCBUaG9tYXMgR2xlaXhuZXIgd3JvdGU6 DQo+IA0KPiBCYWxiaXIsDQo+IA0KPiBCYWxiaXIgU2luZ2ggPHNibGJpckBhbWF6b24uY29tPiB3 cml0ZXM6DQo+ID4gZGlmZiAtLWdpdCBhL2FyY2gveDg2L2luY2x1ZGUvYXNtL3RsYmZsdXNoLmgN Cj4gPiBiL2FyY2gveDg2L2luY2x1ZGUvYXNtL3RsYmZsdXNoLmgNCj4gPiBpbmRleCA2ZjY2ZDg0 MTI2MmQuLjY5ZTZlYTIwNjc5YyAxMDA2NDQNCj4gPiAtLS0gYS9hcmNoL3g4Ni9pbmNsdWRlL2Fz bS90bGJmbHVzaC5oDQo+ID4gKysrIGIvYXJjaC94ODYvaW5jbHVkZS9hc20vdGxiZmx1c2guaA0K PiA+IEBAIC0xNzIsNyArMTcyLDcgQEAgc3RydWN0IHRsYl9zdGF0ZSB7DQo+ID4gICAgICA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