Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4307529ybz; Mon, 20 Apr 2020 20:48:35 -0700 (PDT) X-Google-Smtp-Source: APiQypJ5ASmN+SM/HnTpYmlFgCr3f9MTxd9svexpkw6DR0sTiTRg8p8H6Zy+u8jVVLEKmLTQ1/OY X-Received: by 2002:a17:906:4cc3:: with SMTP id q3mr10151715ejt.170.1587440915353; Mon, 20 Apr 2020 20:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587440915; cv=none; d=google.com; s=arc-20160816; b=ww6UFp5FMCWJasXAc9RMnOzpW8E0ttJnXSAfuHcUD97dsxQzht1Lixv3vGrJCH0OCz LqzX6v/uEM73W0Kmt96L+30dC4hnR8eCMwC5+22yO2WGdPt0Ei6eQelTGDdLZMpNpN6z TfVp3MtZkB3JrpZFjbyLkI53j5LmQtqf3WAEc6kF01f0cVRZ5+OSPbIkQXCG89Vsy/AG RjMIF1XJW7L4HVICDB+Wbqk9IVfml5e7RSPtzd11TjsmPAlTtIy8oFaWYlsY8CVpZOZ2 XcCdC+X68AEPlqAlNn60vuKTuAakfnDkVa5k7UCMiwD5omUpQ6fQpQxbD4oKNWaQgGge +PXA== 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=pT4ehHT/Gya7eiIlqUxl+JlsqzDx2FVDAu4HZIrBjY8=; b=hCIihKDUIrWCtCIjdDvrC+CrSGYfAW7p9r0JP/1uRUiwPohcyk9/w9qU7iVLrlPpPg NqINLcuuLUpYMumb4LL9TgLV1Wb2EnoD6syI7fgQzAwgI+t75vva9IAUg4COZ50T3ayl imtm+Kgwv7V7+3zohBRjcLByZ1Sjle7YDGFXY/FdCqLgBx3y47o0PpCaMFTgLbfHe/u4 rtIYrONhtVTyZvz22mmKWIlVB2NhrLCcGVKpW90n9/3cp3F04sTZAQKbqBTpCQzAq/7f LkffZJ90VOKhEs5P8kXkuwCSgYrU5Pcd3OneaRvCGfZK1EoslTnc9Ed2J8f/Lrlqw6Y7 kbSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=B1FyKoS8; 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 co2si565943edb.524.2020.04.20.20.48.10; Mon, 20 Apr 2020 20:48:35 -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=B1FyKoS8; 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 S1727948AbgDUDrF (ORCPT + 99 others); Mon, 20 Apr 2020 23:47:05 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:50081 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726793AbgDUDrF (ORCPT ); Mon, 20 Apr 2020 23:47:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1587440825; x=1618976825; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=pT4ehHT/Gya7eiIlqUxl+JlsqzDx2FVDAu4HZIrBjY8=; b=B1FyKoS8jBKSInOxAXyQk0N1VXJrC7DnARRs7HaqKd2qPEkhrRzvYecF xy0nZ58Gtvb7hSKxgA4mgo3OabQNM90iS8b4mXjqX+NHT6kEbSQ202LXH wJyAkiRmbpBdc5j/RYnZtXgotevOdvmhVjyH15/Wk4Uo7k6GLgQhYj+T2 I=; IronPort-SDR: PGw4DOxkkhoNarGYS/8HgBeQ5z6ZKUIIFmZKoY8wm8PL+k/l0sg63BT/YGQR8NoY9NgxiHFwb3 E4a2eWv+/9KQ== X-IronPort-AV: E=Sophos;i="5.72,408,1580774400"; d="scan'208";a="38385253" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2a-22cc717f.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 21 Apr 2020 03:47:01 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2a-22cc717f.us-west-2.amazon.com (Postfix) with ESMTPS id 13958A1E5A; Tue, 21 Apr 2020 03:47:00 +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, 21 Apr 2020 03:46:59 +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, 21 Apr 2020 03:46:59 +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, 21 Apr 2020 03:46:59 +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 v3 3/5] arch/x86/mm: Refactor cond_ibpb() to support other use cases Thread-Topic: [PATCH v3 3/5] arch/x86/mm: Refactor cond_ibpb() to support other use cases Thread-Index: AQHWF4+CrdiQ0H/ugE+EG6G+uj3LHQ== Date: Tue, 21 Apr 2020 03:46:59 +0000 Message-ID: <9cbabf58e0a6fe3775c268d1fa4517d02ad7e617.camel@amazon.com> References: <20200408090229.16467-1-sblbir@amazon.com> <20200408090229.16467-4-sblbir@amazon.com> <87sgh2l0q4.fsf@nanos.tec.linutronix.de> <12023cc73a6344ed7499e09492a6934c1dfaf044.camel@amazon.com> <87pnc5xgff.fsf@nanos.tec.linutronix.de> In-Reply-To: <87pnc5xgff.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.193] 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 T24gU2F0LCAyMDIwLTA0LTE4IGF0IDExOjU5ICswMjAwLCBUaG9tYXMgR2xlaXhuZXIgd3JvdGU6 DQo+IA0KPiAiU2luZ2gsIEJhbGJpciIgPHNibGJpckBhbWF6b24uY29tPiB3cml0ZXM6DQo+ID4g T24gRnJpLCAyMDIwLTA0LTE3IGF0IDE1OjA3ICswMjAwLCBUaG9tYXMgR2xlaXhuZXIgd3JvdGU6 DQo+ID4gPiANCj4gPiA+IEJhbGJpciBTaW5naCA8c2JsYmlyQGFtYXpvbi5jb20+IHdyaXRlczoN Cj4gPiA+ID4gDQo+ID4gPiA+ICAvKg0KPiA+ID4gPiAtICogVXNlIGJpdCAwIHRvIG1hbmdsZSB0 aGUgVElGX1NQRUNfSUI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