Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp4356ybk; Thu, 14 May 2020 14:31:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4Vt++bYqYt5ERM0Avnqt1o9Suy6HNahw/Bl/COksXGLMGevWSGizStc0RhtvqcGy7YHhA X-Received: by 2002:a17:906:30c3:: with SMTP id b3mr43711ejb.126.1589491913781; Thu, 14 May 2020 14:31:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589491913; cv=none; d=google.com; s=arc-20160816; b=uB3usIgN1quMO7yx0YqT3xPrCVLYwkA4enkePX1Lh8CQ0cK68ijnN3Y1lUcr8nJJbZ LOA4OROJTFNmTfaUpOg34q6CxOWuxIjHNPEe5GPSDYs+oTDYkuUsBCMcRxDOmG/aqh6f R7rfE6rhgVygLNYn1eMSe69ixSLIxvZuD84bM8fpoieqrLNTFhM1NiXbRgbuvxMpAsHI YJsqd6PtKR0gIG1/eFQaAyvVeOV4UbSt0xNxcxRareEnkIjaLEv/gScq95nTQYjK2KWs gBsMfCTT+WSYgvGEdmwNNZkT6TVexDCfuMOeXHhzDe62hzBVNmtNujl2ZWhSooQb5Hi4 +BTw== 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=Yezbi7AQfUMT0qNCPnMZ02HTQsMDXfrnbbka4Wj1wNY=; b=FKgYF2QEyailnwI3yxBsWCmbQSCrP4RIcaJDdS+Yqb43kK0HtGfRAjGssrPM/XH5OS 4J4Xt9SQ+t5dTmGPBQ6m/+J7I52bhznPWkhcfcNQFJdyok8XgFQV6EZEpdRgmiIRBsok DXh2qNORm6UHtJLxcPAhpWaOH4ku/QI2SEnvXvRE3FtEIjV2z3ViERhVICjK0TZvvfu1 +p6IBa6aiQMTHnBQIWFL5rImeC7XivkPBPLhCZU/Kawiyc2aMNecGGZG0mfspTEeGcv7 YdwTll7b60yc2byP8FJNnrm0O9R+jV63G6EBIW4ZFCerBa0rYN3gol/aM6V9t1paK/Lj 63ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=OeRNBDYX; 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 u25si69485ejr.1.2020.05.14.14.31.30; Thu, 14 May 2020 14:31:53 -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=OeRNBDYX; 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 S1727956AbgENV25 (ORCPT + 99 others); Thu, 14 May 2020 17:28:57 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:57470 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726201AbgENV24 (ORCPT ); Thu, 14 May 2020 17:28:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1589491736; x=1621027736; h=from:to:cc:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version:subject; bh=Yezbi7AQfUMT0qNCPnMZ02HTQsMDXfrnbbka4Wj1wNY=; b=OeRNBDYXsMRXUtI4rsZATK9N5/Mno5ruqpYPcbLb0QvSPmMGkB2xRzQ7 dCmma5nGH9ZSCF20eLr8YxoNjO0KxYO1R13gDpWMjveahX+QchSWly4BL jMPGLH4cPzMkB30pvU8jXKRoPtoDt3ldSnJgIvGH2zQgCtEP6+u/3Qr9J s=; IronPort-SDR: t5l9s8uzYvtD6Vka3vUgGf4wNKI7p32r07c569rdZmpjzjwBLgHPVv4IpskNmqv2iyc8IaPrp8 cvZeYYmhYAMQ== X-IronPort-AV: E=Sophos;i="5.73,392,1583193600"; d="scan'208";a="30471394" Subject: Re: [PATCH v6 5/6] Optionally flush L1D on context switch Thread-Topic: [PATCH v6 5/6] Optionally flush L1D on context switch Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-1a-807d4a99.us-east-1.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 14 May 2020 21:28:43 +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 8C945A238F; Thu, 14 May 2020 21:28:39 +0000 (UTC) Received: from EX13D01UWB002.ant.amazon.com (10.43.161.136) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 14 May 2020 21:28:38 +0000 Received: from EX13D01UWB002.ant.amazon.com (10.43.161.136) by EX13d01UWB002.ant.amazon.com (10.43.161.136) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 14 May 2020 21:28:38 +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 21:28:38 +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" Thread-Index: AQHWJm0VV4Hzu4vjckmHwrAVGGHnm6imKUmAgAH3HoA= Date: Thu, 14 May 2020 21:28:38 +0000 Message-ID: <6f8299db4170800e9db5b0b7da663e3cf6c5fec5.camel@amazon.com> References: <20200510014803.12190-1-sblbir@amazon.com> <20200510014803.12190-6-sblbir@amazon.com> <878shv3ldy.fsf@nanos.tec.linutronix.de> In-Reply-To: <878shv3ldy.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.162.140] Content-Type: text/plain; charset="utf-8" Content-ID: <75863FDFF49CCB4EA870DAD3B7BA9A89@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 T24gV2VkLCAyMDIwLTA1LTEzIGF0IDE3OjI3ICswMjAwLCBUaG9tYXMgR2xlaXhuZXIgd3JvdGU6 DQo+IENBVVRJT046IFRoaXMgZW1haWwgb3JpZ2luYXRlZCBmcm9tIG91dHNpZGUgb2YgdGhlIG9y Z2FuaXphdGlvbi4gRG8NCj4gbm90IGNsaWNrIGxpbmtzIG9yIG9wZW4gYXR0YWNobWVudHMgdW5s ZXNzIHlvdSBjYW4gY29uZmlybSB0aGUgc2VuZGVyDQo+IGFuZCBrbm93IHRoZSBjb250ZW50IGlz IHNhZmUuDQo+IA0KPiANCj4gDQo+IEJhbGJpciBTaW5naCA8c2JsYmlyQGFtYXpvbi5jb20+IHdy aXRlczoNCj4gDQo+ID4gSW1wbGVtZW50IGEgbWVjaGFuaXNtIHRvIHNlbGVjdGl2ZWx5IGZsdXNo IHRoZSBMMUQgY2FjaGUuIFRoZSBnb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