Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp243798ybz; Thu, 30 Apr 2020 20:52:51 -0700 (PDT) X-Google-Smtp-Source: APiQypILe1Fn6c6TceDjZaAzjeU0cMcTr5hDQ75XbFmSZExciwHn7JCL67T85EMROOG170tw5Guv X-Received: by 2002:a17:906:18e9:: with SMTP id e9mr1515323ejf.140.1588305170875; Thu, 30 Apr 2020 20:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588305170; cv=none; d=google.com; s=arc-20160816; b=MC2mEIDZHESXchMsrOP/HhGSNGgmj37i7Om2BQyKMAS40K3i/YUBAVU0Y9V5/rzBs2 kLHVjzdh8DQC8ksV9vNdv58ACEm/otU3eKbNcdW5M4et1oIR0thHeUtPp6CxziwD+u6Q wgkCh6sN1TozRNE9DrWUdyH+7JDQHhlm+AGdJtQyYQQ8FBpvg7GP8Oy0p5iZLFuQn97T /l2bSDnuAYx846NHCm11l+9qRUpedY22bfXEoXWOZpq/gvA/pA5ORZNMc8H3c3mELeYX +x/nE5mK7WvIjeqrJTS1tBnuqeXs21Jk5nS4dtubexqGpQ9t1QWzp2O0cEWVKJgc/d0C t4aw== 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=9WFDGqkOMXIZrj4o5C2jZsXPqpKY2ILbnwfgDmi1TPU=; b=dB1y6EJaNkeDIOsKI/e6mXQIaU2dMMrKeRLtUV75SHOpx7I1Yl3rRjEpgPjWTu3s6a 9LHSonUtagQSb8t65B9XWCUu69ItDj+16AeFhJrbRHKwSHmQ39MxQ60D65g22g4fG0Kh RNFWlaMsEiqhcezlcJmqq07XocC7yoiAyvCTcYZR0kZPquuXgArbNHHWAtvBUdEn5IQw IvGO4thsu6+u/TDCT12rAuKaRiFIFO06hfBdwgqzt5CkFrnHhuvcfP2fEu4MqCyHaaR4 jVxkNIbsOBkP0pjKbORXhspZmUxSYvmcZW+XRMK7oj4xothKvisXr7cSZWZF41Rpza88 IpJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=LAZ14VJh; 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 bs26si1039674ejb.527.2020.04.30.20.52.27; Thu, 30 Apr 2020 20:52:50 -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=LAZ14VJh; 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 S1728150AbgEADso (ORCPT + 99 others); Thu, 30 Apr 2020 23:48:44 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:27392 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728099AbgEADsn (ORCPT ); Thu, 30 Apr 2020 23:48:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1588304923; x=1619840923; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=9WFDGqkOMXIZrj4o5C2jZsXPqpKY2ILbnwfgDmi1TPU=; b=LAZ14VJh8Rb1HPDXrDJKAOJuV/m01GHb8krkcDlYAMr5RPUsecQWV7kq lKUYu7xl0cUxEdAkJSyIH7lg1njnZ15AemyKAxREDrmpCTu0auWhvARbg u4nDeFMJaE9B3fPSUzI9iWKn4l5quR+GhR8Cu+wULytqFluX73i/G0XAP c=; IronPort-SDR: 281A5/6dqAKu8pa/LoZK13YmaSssrF6kl/RGJnI198kIFThfEnyTkOFF0oAF0mwDXFroT0FOov 0Ur4wcg4wpbg== X-IronPort-AV: E=Sophos;i="5.73,338,1583193600"; d="scan'208";a="40597647" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1d-98acfc19.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 01 May 2020 03:48:41 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1d-98acfc19.us-east-1.amazon.com (Postfix) with ESMTPS id 8FD5CA217C; Fri, 1 May 2020 03:48:37 +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; Fri, 1 May 2020 03:48:36 +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; Fri, 1 May 2020 03:48:36 +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; Fri, 1 May 2020 03:48:36 +0000 From: "Singh, Balbir" To: "thomas.lendacky@amd.com" , "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 v4 1/6] arch/x86/kvm: Refactor l1d flush lifecycle management Thread-Topic: [PATCH v4 1/6] arch/x86/kvm: Refactor l1d flush lifecycle management Thread-Index: AQHWGqO9uySqPyunLEWB26nlla6sNKiSoX4A Date: Fri, 1 May 2020 03:48:36 +0000 Message-ID: References: <20200423140125.7332-1-sblbir@amazon.com> <20200423140125.7332-2-sblbir@amazon.com> In-Reply-To: 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: 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 T24gU2F0LCAyMDIwLTA0LTI1IGF0IDExOjQ5ICsxMDAwLCBCYWxiaXIgU2luZ2ggd3JvdGU6DQo+ IE9uIEZyaSwgMjAyMC0wNC0yNCBhdCAxMzo1OSAtMDUwMCwgVG9tIExlbmRhY2t5IHdyb3RlOg0K PiA+IA0KPiA+IE9uIDQvMjMvMjAgOTowMSBBTSwgQmFsYmlyIFNpbmdoIHdyb3RlOg0KPiA+ID4g U3BsaXQgb3V0IHRoZSBhbGxvY2F0aW9uIGFuZCBmcmVlIHJvdXRpbmVzIHRvIGJlIHVzZWQgaW4g YSBmb2xsb3cNCj4gPiA+IHVwIHNldCBvZiBwYXRjaGVzICh0byByZXVzZSBmb3IgTDFEIGZsdXNo aW5nKS4NCj4gPiA+IA0KPiA+ID4gU2lnbmVkLW9mZi1ieTogQmFsYmlyIFNpbmdoIDxzYmxiaXJA YW1hem9uLmNvbT4NCj4gPiA+IFJldmlld2VkLWJ5OiBLZWVzIENvb2sgPGtlZXNjb29rQGNocm9t aXVtLm9yZz4NCj4gPiA+IC0tLQ0KPiA+ID4gICBhcmNoL3g4Ni9pbmNsdWRlL2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