Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1126040ybk; Thu, 14 May 2020 00:45:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfPvWvZLknf7h3S9Ykk1fHdb9+XO+A2OqpWYFLHubORJLzsVNxFHlPRwfJiSBEpSF3QMNY X-Received: by 2002:a17:906:6a18:: with SMTP id o24mr2714692ejr.66.1589442357405; Thu, 14 May 2020 00:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589442357; cv=none; d=google.com; s=arc-20160816; b=r6yrSQdgV9atg0ZfoxwT435kWUmbQiu/uHuaj1sd0KbX4u8wLdcLX7qkVvCNbWdJ6k AT5qVTF0OEVtIjHq5PhhR4LfHsjqdbI+laPstg/yk03J5gZi8v1q6OVjugEvvdGoslsS QD+6tnjUJoIJeTTVTOhfQU/+6SOeM/APkyHD+dXq6qt951Tg5eB2sDL1UncjaDyQPuIT ukprl+sZfbOD3BlC/amySUrRNfi7O+BLDlWQZjTQuE9YopSbSEnTm6Ls+6btJ8BS4Atr LFjz5PQY53fkEec2Fo542nBlq8uwLLzLSECSKRmTvcOPM2pKvv37AgWcSd+kPpgJoQWe o6FA== 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=wT4qOuj8Q9WmQhlnoAklk0PVnDme75ztxit48VsCt4Y=; b=TZjCg/p0Dk/ey27eSZ+e5YdCEuFb0dSv9n190HgHp7FgQdZbLABB1dA1V1PWjAX40P FyJQ2D0iYyvFnRTm90LWhZwywoQmQ+YNuEigf+YdfBgmCvTqCcF0wIdiLrPRsIU3eIHT Er8TYbOIwVcJtBtkG59lBbv73+UODCR5Do6xx/u3kkNxsOAyLBbg2507263ml0MoMfWd eHus6beFle96t9bzSXfOg53pnfM7Ee5yyktXdIiVV3I5A3dsbr/ye9Fi2WkJKZ2UL9JA PTOK1wnwhuceWSSeMuxg2NT7bMR/dJE/JtkNLkGRBsA07z4GQQIgU6UZzziB1nMrQBHl WCkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=IOAHgTi8; 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 y1si1095665edo.418.2020.05.14.00.45.34; Thu, 14 May 2020 00:45:57 -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=IOAHgTi8; 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 S1725970AbgENHnj (ORCPT + 99 others); Thu, 14 May 2020 03:43:39 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:53671 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725886AbgENHnj (ORCPT ); Thu, 14 May 2020 03:43:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1589442218; x=1620978218; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=wT4qOuj8Q9WmQhlnoAklk0PVnDme75ztxit48VsCt4Y=; b=IOAHgTi8LGHycwV603tFt666pLOVvh2wz8EVw3GgSUswfb2kIaRB9HTo 8LJN2lwrOxb8dFAJvCpJpz/ygCqmG0zszsKIXTYsdZ63bST9EAifNY8dv HH6vkv6jPtIRlRShVD+j7iTNWPYCZ/7e7XnYQlGup171e4HCMMwWPDYaR A=; IronPort-SDR: F4+iKVRbkwTG8vJQ5avP4DJw0g+vHrBVu9ciSr0yArblAjVPd1p4fQehfAVxc36pUTjuZL4S1n agaKAUHu68ow== X-IronPort-AV: E=Sophos;i="5.73,390,1583193600"; d="scan'208";a="43309552" Received: from sea32-co-svc-lb4-vlan2.sea.corp.amazon.com (HELO email-inbound-relay-2b-859fe132.us-west-2.amazon.com) ([10.47.23.34]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 14 May 2020 07:43:36 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2b-859fe132.us-west-2.amazon.com (Postfix) with ESMTPS id 9708F223842; Thu, 14 May 2020 07:43:35 +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 07:43:35 +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 07:43:34 +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 07:43:34 +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: AQHWKcNfmceK11Or5k6H65l76p1aOw== Date: Thu, 14 May 2020 07:43:34 +0000 Message-ID: References: <20200510014803.12190-1-sblbir@amazon.com> <20200510014803.12190-6-sblbir@amazon.com> <875zcz3j47.fsf@nanos.tec.linutronix.de> In-Reply-To: <875zcz3j47.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.146] 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 T24gV2VkLCAyMDIwLTA1LTEzIGF0IDE4OjE2ICswMjAwLCBUaG9tYXMgR2xlaXhuZXIgd3JvdGU6 DQo+IEJhbGJpciBTaW5naCA8c2JsYmlyQGFtYXpvbi5jb20+IHdyaXRlczoNCj4gDQo+IFRoaXMg cGFydDoNCj4gDQo+ID4gLS0tIGEvaW5jbHVkZS91YXBpL2xpbnV4L3ByY3RsLmgNCj4gPiArKysg Yi9pbmNsdWRlL3VhcGkvbGludXgvcHJjdGwuaA0KPiA+IEBAIC0yMzgsNCArMjM4LDggQEAgc3Ry dWN0IHByY3RsX21tX21hcCB7DQo+ID4gICNkZWZpbmUgUFJfU0VUX0lPX0ZMVVNIRVIgICAgICAg ICAgICA1Nw0KPiA+ICAjZGVmaW5lIFBSX0dFVF9JT19GTFVTSEVSICAgICAgICAgICAgNTgNCj4g PiANCj4gPiArLyogRmx1c2ggTDFEIG9uIGNvbnRleHQgc3dpdGNoIChtbSkgKi8NCj4gPiArI2Rl ZmluZSBQUl9TRVRfTDFEX0ZMVVNIICAgICAgICAgICAgIDU5DQo+ID4gKyNkZWZpbmUgU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