Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2809560rdb; Tue, 12 Sep 2023 12:45:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGWEtXTBc2lnzNu2q04wjUrWFjZ5p/Q5xEgBgk9SvyLv8z0TLSL3zffl7miK2qxhinFWBW X-Received: by 2002:a17:90a:7ace:b0:274:1b8c:da01 with SMTP id b14-20020a17090a7ace00b002741b8cda01mr214034pjl.33.1694547936299; Tue, 12 Sep 2023 12:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694547936; cv=none; d=google.com; s=arc-20160816; b=OezSe3s+j2F3E6z0cRo31LU6XEU44Te+DXChal+8T9rWPqTxfcnkz1hikss/za+czm e8UXQtRnOPVwz/4kuK1hY6CdNsxWA//Q6ktQ5KcWCRi501Y1D/A3KQp2+Ecci0Yw4kz+ fwy8Xllf8HlWYAlEd427x7MdGXnH6GGxe8RCeGHRite6B64zQksC22gKsAnlj2JSgHQQ jXfLNGoOxwZLnScx99nqvAfxufj4q+IxZaHZMPrxcIfda3I8y2xLdH1Cgjv4iBrAKe45 +9hjz4rSIbdeBGHEKEOMoukuPEh2sqQpyHeAkhQxEcQ0F9s0BETEgBS5sYVT/PH8tF6G TFvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=8YkkLVrON4XIjnJE8PEN+App82947+CzlxjYVWv00IY=; fh=X4uPfE9rTK568/ssrcPM7l0+s84VICCoLRZUmN96Ggc=; b=gApXCQlHEN0ISuQtjU++v6OPbnJaIuJJeYKQ4WYqQiwveOSZ0f2Xswq21H+uHZJyUG cBaljgAHs6dt+dtUJvN++f0QOF4J1bgTaJX+xx/PQt0KXzS7LlX4IAu0Pk7SHNlX/CKZ 80iZLQtxxNMr+kMuInzEsXmHmTPYxJyBNpq5W1kGUC8bfSub7ZAMBEngGaT4rzO6g7Iz bOMQnXx+KfmLPc9iL91YghXyVyTh9hIHBIOKPVGh3WFuMBqJ8tIqRSdxo2tqSnrlX63D Opg+0j32peg/dKgRmgeRZK85gcpeTzJNlc1d6MTJnBpTiHRyr7PTXG3DYSK5CFJYM5PS Vr3Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id qe15-20020a17090b4f8f00b00268e32e99f0si8739655pjb.28.2023.09.12.12.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 12:45:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1216580907B9; Tue, 12 Sep 2023 12:41:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237644AbjILTlV (ORCPT + 99 others); Tue, 12 Sep 2023 15:41:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236057AbjILTlP (ORCPT ); Tue, 12 Sep 2023 15:41:15 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D8735115 for ; Tue, 12 Sep 2023 12:41:10 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-76-W-5t9hiWOWqAxCmj4PVSRw-1; Tue, 12 Sep 2023 20:41:07 +0100 X-MC-Unique: W-5t9hiWOWqAxCmj4PVSRw-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 12 Sep 2023 20:41:03 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Tue, 12 Sep 2023 20:41:03 +0100 From: David Laight To: 'Linus Torvalds' CC: Mateusz Guzik , "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , "bp@alien8.de" Subject: RE: [PATCH v2] x86: bring back rep movsq for user access on CPUs without ERMS Thread-Topic: [PATCH v2] x86: bring back rep movsq for user access on CPUs without ERMS Thread-Index: AQHZ23Vdq8Esj5k0zUGYupOb09r6RrAF7nHAgAAb1ICAABQQEIANxBwAgAGZkGCAAg/ggIAAEt9w Date: Tue, 12 Sep 2023 19:41:03 +0000 Message-ID: References: <20230830140315.2666490-1-mjguzik@gmail.com> <27ba3536633c4e43b65f1dcd0a82c0de@AcuMS.aculab.com> <9a5dd401bf154a0aace0e5f781a3580c@AcuMS.aculab.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 12 Sep 2023 12:41:31 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email RnJvbTogTGludXMgVG9ydmFsZHMNCj4gU2VudDogMTIgU2VwdGVtYmVyIDIwMjMgMTk6NDkNCj4g DQo+IE9uIE1vbiwgMTEgU2VwdCAyMDIzIGF0IDAzOjM4LCBEYXZpZCBMYWlnaHQgPERhdmlkLkxh aWdodEBhY3VsYWIuY29tPiB3cm90ZToNCj4gPg0KPiA+IFRoZSBvdmVyaGVhZCBvZiAncmVwIG1v dmJzJyBpcyBhYm91dCAzNiBjbG9ja3MsICdyZXAgbW92c3EnIG9ubHkgMTYuDQoNCkludGVyZXN0 aW5nbHkgZXhhY3RseSB0aGUgc2FtZSB0ZXN0IGNoYW5nZWQgaXRzIG1pbmQgZm9yIG5vIHJlYXNv biENCldoaWxlIEkgZ290IHJlcGVhdGFibGUgY2xvY2sgY291bnRzICgrLy0xIGluIHRoZSBsb3cg aHVuZHJlZHMpIHdoZW4NCmxvb3BpbmcgdGhlIHRlc3QgKGllIHRoZSAnaG90IGNhY2hlJyBjYXNl cyksIEkgY291bGRuJ3QgZGVjaWRlIG9uDQp0aGUgZXhhY3Qgb3ZlcmhlYWQgdG8gZ2V0IGFuIGFj Y3VyYXRlIGJ5dGVzL2Nsb2NrLg0KT1RPSCBpdCB3YXMgYmV0d2VlbiAzMCBhbmQgMzUgLSBzbyBw cmV0dHkgbXVjaCBsaWtlbHkgdG8gYmUgMzIuDQoNCj4gTm90ZSB0aGF0IHRoZSBoYXJkIGN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