Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4580589pxb; Sat, 12 Feb 2022 10:00:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxuGbSB4fHwn8LxTv8EiCeS+DBq042wo1Euaqt9cD5aaAQoN35jvRpwiUKXhLA1fkMi+66Z X-Received: by 2002:a50:fb14:: with SMTP id d20mr1979635edq.214.1644688828860; Sat, 12 Feb 2022 10:00:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644688828; cv=none; d=google.com; s=arc-20160816; b=mS+wSWOf3h/LIB5fmIad6meSFIEeqzTgUgx3qpnzR7A+kQlBpWc8ZYLl3OfwGvRkZe IMQD68Ba2LvWvlSC0fQmn/m9CYOUJPVgRuA4s013R96/PL289Oxha87L5Rtors/ckuCj G8wDo2W1PCxuWzewGMLzhziW9vl+02jhwBXCUzhDws6TYwf5vHbUQ99bS12qwyfiFMIW X74jod/09cTTrrkT5PgQFSgCYVdXsECJreKuUuoM859u30MIO4yzr+G8E+090ughCj1n X5n0zltHRfMzwXhd0B5tExGXiqRTeqBFePLFnwzlTySmRh2OljCf/5pk1LWzRsMNCIB7 9KWA== 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=wCXDT1/2kQXB+YqZGDKXHM4bBfsPGWroDiTbKXZIZjY=; b=Hws5TiPk+PMPu4139pfQVLL526QsHUDuxGPw/wikjOL2o4sktjZpTglZZGzhsmHWs3 JwMRTPUsA663w97jGywkL2JR1UJZXLSVt1s1peD9hPXlAwIxI22IPbSNZyUUzQXpgq/g eW7lNtfiFKRQ0KSDwg9aJsbBmCZormw/gMP/C8fqyuekWZX3F0gXn62KwbAl7Orsearx jrsg4J+jy98t6IdG3IjRs28Fsbo0+TfucDq8nIeWALNpv0g4siexIOlq2TcMwDYtcIDm lAz7FKI5g9zAKStCBKZ1aeA3+OyQNiiMI1uf+0UF/m8hU0NfkjaDVCzh5MyxeCClikcd BhwQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg17si813620ejc.856.2022.02.12.09.59.34; Sat, 12 Feb 2022 10:00:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353964AbiBKWKG (ORCPT + 93 others); Fri, 11 Feb 2022 17:10:06 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242929AbiBKWKF (ORCPT ); Fri, 11 Feb 2022 17:10:05 -0500 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 A44F8CF9 for ; Fri, 11 Feb 2022 14:10:02 -0800 (PST) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-234-heNkNE9MNiONtRLfW4EdGw-1; Fri, 11 Feb 2022 22:09:59 +0000 X-MC-Unique: heNkNE9MNiONtRLfW4EdGw-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Fri, 11 Feb 2022 22:09:58 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.028; Fri, 11 Feb 2022 22:09:58 +0000 From: David Laight To: 'Bill Wendling' CC: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "x86@kernel.org" , "H . Peter Anvin" , "Nathan Chancellor" , Nick Desaulniers , Juergen Gross , Peter Zijlstra , "Andy Lutomirski" , "llvm@lists.linux.dev" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v4] x86: use builtins to read eflags Thread-Topic: [PATCH v4] x86: use builtins to read eflags Thread-Index: AQHYHs4TBErQZHLpBUiy6+9ZW5FRHqyOjNCAgAAv2wCAACoDUA== Date: Fri, 11 Feb 2022 22:09:58 +0000 Message-ID: <6b83fa302b974f749c60fc6c456e055f@AcuMS.aculab.com> References: <20220204005742.1222997-1-morbo@google.com> <20220210223134.233757-1-morbo@google.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 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com 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 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogQmlsbCBXZW5kbGluZyA+IFNlbnQ6IDExIEZlYnJ1YXJ5IDIwMjIgMTk6MjYNCj4gDQo+ IE9uIEZyaSwgRmViIDExLCAyMDIyIGF0IDg6NDAgQU0gRGF2aWQgTGFpZ2h0IDxEYXZpZC5MYWln aHRAYWN1bGFiLmNvbT4gd3JvdGU6DQo+ID4gRnJvbTogQmlsbCBXZW5kbGluZw0KPiA+ID4gU2Vu dDogMTAgRmVicnVhcnkgMjAyMiAyMjozMg0KPiA+ID4NCj4gPiA+IEdDQyBhbmQgQ2xhbmcgYm90 aCBoYXZlIGJ1aWx0aW5zIHRvIHJlYWQgYW5kIHdyaXRlIHRoZSBFRkxBR1MgcmVnaXN0ZXIuDQo+ ID4gPiBUaGlzIGFsbG93cyB0aGUgY29tcGlsZXIgdG8gZGV0ZXJtaW5lIHRoZSBiZXN0IHdheSB0 byBnZW5lcmF0ZSB0aGlzDQo+ID4gPiBjb2RlLCB3aGljaCBjYW4gaW1wcm92ZSBjb2RlIGdlbmVy YXRpb24uDQo+ID4gPg0KPiA+ID4gVGhpcyBpc3N1ZSBhcm9zZSBkdWUgdG8gQ2xhbmcncyBpc3N1 ZSB3aXRoIHRoZSAiPXJtIiBjb25zdHJhaW50LiAgQ2xhbmcNCj4gPiA+IGNob29zZXMgdG8gYmUg Y29uc2VydmF0aXZlIGluIHRoZXNlIHNpdHVhdGlvbnMsIGFuZCBzbyB1c2VzIG1lbW9yeQ0KPiA+ ID4gaW5zdGVhZCBvZiByZWdpc3RlcnMuIFRoaXMgaXMgYSBrbm93biBpc3N1ZSwgd2hpY2ggaXMg Y3VycmVudGx5IGJlaW5nDQo+ID4gPiBhZGRyZXNzZWQuDQo+ID4gPg0KPiA+ID4gSG93ZXZlciwg dXNpbm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