Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp410240ybz; Fri, 24 Apr 2020 19:02:19 -0700 (PDT) X-Google-Smtp-Source: APiQypK3M/OJIac3VS2HlcXchnXFwMpHoGXDNI0rR8NVRfQUt/7We1cLvKGZcf+tN/C1erEMXl6/ X-Received: by 2002:a17:906:9518:: with SMTP id u24mr9999706ejx.320.1587780139458; Fri, 24 Apr 2020 19:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587780139; cv=none; d=google.com; s=arc-20160816; b=wE0vk24tFpiBSRvLo8sHr+okd+wVuQECnvdiWKfKCygl4FKDzPv3LVo5K6zpGVKC74 URRa6rTDNcLjQ8lXfsqnG8WTZu6NPFWbzSTARyHnA6eHaBzkuvg006B+0QT9JmKhJ3Wu Tl5cnIpHFycHnEZ/zDRy1Qtt17hx0GxEfNxTb6+YPJyjUSeW7/bMTc6l0SvfeZXxxg6L Ley83OhAanh6K+5jozyYeVCyoAVUFKukBykosLDN/rQcvCwdZ/9PVfhPkEIwBpAM3mQs Hsm1Eyr5AJAMkDR6Rwbs99iOuhn8F4qvA+l7df8fNLfQrb7zsNCnek3LfzAWM5ty8PD3 8ZQw== 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:cc:to:from:thread-topic:subject :ironport-sdr:dkim-signature; bh=tL421YGoXf0/XNLqGolhDAR7ZcKtVSLcXds/GPTHE+I=; b=LE5R0hFRfI4OO6nxRwBIf55cBP/UiJPHbYB4Vpw7ugGMbplnLT/drbIomce1QsCz71 U8gSrH1RtBbZtHbLO0Ly4129cyj+6nER05+WO5f3z4du1g+bNzrM3cI2cQZUdlNYIM+B Vj49EHhm+QABDFnfu0HOQNeAj/ImGHwLAeF2Xb4RkLxxi8PwIc0XPL/Y3qwZQHvreioy nEgemA88FmWLpV2DB/PXGj7XqITE7AlLOnvdUs841P289pZDBUL1+LvHhAcduvwYiE0F St7OZwmmMfyA94xao6XNaaunsMw+YRufEQbMS1TvoZGW6XKDGwpEEF8Pcgj9h4113JlM gQEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=LsKFrte7; 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 5si3989775edy.189.2020.04.24.19.01.54; Fri, 24 Apr 2020 19:02:19 -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=LsKFrte7; 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 S1726112AbgDYCAQ (ORCPT + 99 others); Fri, 24 Apr 2020 22:00:16 -0400 Received: from smtp-fw-9101.amazon.com ([207.171.184.25]:50428 "EHLO smtp-fw-9101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbgDYCAP (ORCPT ); Fri, 24 Apr 2020 22:00:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1587780014; x=1619316014; h=from:to:cc:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version:subject; bh=tL421YGoXf0/XNLqGolhDAR7ZcKtVSLcXds/GPTHE+I=; b=LsKFrte7/K9aTX8BoXL2L28JxO9HgDhKWTYnoqTVsulQLaef8gOI3/KT 8xkZjIOyg/oO+n8g3e9vbQ2DuzoN/I3Ei6oH6504CDoz+DTNgCbFczAtz UemlssAqVEMMpVs4AGFu9RnMlzIV0WWggBLhXL8ObGVZQfZDt/+1nlehp I=; IronPort-SDR: fGsY4L97XFbNl7zvbZSw29QHtEv403XS2sTeMz0Ed4AuMviGuFJvvsDWAaTb8b8qCXxltMBhbI huc212jtYePw== X-IronPort-AV: E=Sophos;i="5.73,314,1583193600"; d="scan'208";a="31056636" Subject: Re: [PATCH v4 2/6] arch/x86/kvm: Refactor tlbflush and l1d flush Thread-Topic: [PATCH v4 2/6] arch/x86/kvm: Refactor tlbflush and l1d flush Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1a-807d4a99.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP; 25 Apr 2020 02:00:12 +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-807d4a99.us-east-1.amazon.com (Postfix) with ESMTPS id 0D9ACA23F8; Sat, 25 Apr 2020 02:00: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; Sat, 25 Apr 2020 02:00:08 +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; Sat, 25 Apr 2020 02:00:07 +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; Sat, 25 Apr 2020 02:00:07 +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" Thread-Index: AQHWGXe0ZgF6A9jeiEmVmBjXs72EAaiIo1uAgAB0L4A= Date: Sat, 25 Apr 2020 02:00:07 +0000 Message-ID: <871aed902ea0932288c47059771aa8624db55907.camel@amazon.com> References: <20200423140125.7332-1-sblbir@amazon.com> <20200423140125.7332-3-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.203] Content-Type: text/plain; charset="utf-8" Content-ID: <59453AADE751974EA8C3A1D86F2C8E62@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 T24gRnJpLCAyMDIwLTA0LTI0IGF0IDE0OjA0IC0wNTAwLCBUb20gTGVuZGFja3kgd3JvdGU6DQo+ IENBVVRJT046IFRoaXMgZW1haWwgb3JpZ2luYXRlZCBmcm9tIG91dHNpZGUgb2YgdGhlIG9yZ2Fu aXphdGlvbi4gRG8gbm90DQo+IGNsaWNrIGxpbmtzIG9yIG9wZW4gYXR0YWNobWVudHMgdW5sZXNz IHlvdSBjYW4gY29uZmlybSB0aGUgc2VuZGVyIGFuZCBrbm93DQo+IHRoZSBjb250ZW50IGlzIHNh ZmUuDQo+IA0KPiANCj4gDQo+IE9uIDQvMjMvMjAgOTowMSBBTSwgQmFsYmlyIFNpbmdoIHdyb3Rl Og0KPiA+IFJlZmFjdG9yIHRoZSBleGlzdGluZyBhc3NlbWJseSBiaXRzIGludG8gc21hbGxlciBo ZWxwZXIgZnVuY3Rpb25zDQo+ID4gYW5kIGFsc28gYWJzdHJhY3QgTDFEX0ZMVV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