Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp53835iob; Wed, 11 May 2022 09:24:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwW/eWX0HZR2YqsZH/sSDerlf8myTKtRIsKd7KzM/BbLAujNZBKy5WBZY7/avnJxz8IiavV X-Received: by 2002:a63:8643:0:b0:3ab:2240:3da1 with SMTP id x64-20020a638643000000b003ab22403da1mr21509452pgd.621.1652286276932; Wed, 11 May 2022 09:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652286276; cv=none; d=google.com; s=arc-20160816; b=jV6DZy/i7LChSHL7+UqQXLSCWgA8xBmKhwPiwoQke4nN7CFKjU83oTaYfJLAzrU5I4 VYJ1/cGbBhc/ORYGJ+lxnq7pkLXlISk/RqkYUH+TcujpBbLf6UwsZw6juF+DWpizyQHn Rf29gFb3c8zvP1CvfMEgS99ffcBbLi2tLXPv2Zp5qJoEsFa2FBSsDYm/kxYHtmENh5rI bt/DMQzmd0krX7iJY792UPwkD7RFHaAsaOkWa0EqdNSG5mSyBEsmQJma6KPhx+ze67Ff +EaRJbWdx0a8r+CtClkhr6nF64DocjA7fFbH4PH0lLja3q2HtBioOqE0pt8OuWsSc7Uh mQUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=jwd63v7lM58rzCcC/SeHOGCmmqEIrOQ6hior6FOrAsw=; b=zsUjm68g1I8m8whx2vPRHddRFE6vif0RKZtbUSg+SaDPtqWZt6BzmYz2nGgBQH3IpC 0ANwnFKtdlgxz7bRGMFXTte3XWhFHtfW/PAgE6xwcAP3WSWY2bcQV6EDerEmkvVJ2fLz 3iAaoWG+1KeMk4mTt6GG6mNafD+PyBnfv7lSmNv8wLcaXdevxj08NS7SElFPAI69skAE 9u7LIa5AR47kpTsimnx+7mt6l4drbFIyIHuC/RNgDYZ5Wlj0jV+OGeKAGGapH0bv/Nro AL0CTr9RF23LTgMhGbDNwhemVxFK1jFWutMIO26JZ1IkL+n/pBh9UGeRRI7/FIb72GBa AHvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=RkkG4Psf; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a639255000000b003c574051ce8si156219pgn.167.2022.05.11.09.23.54; Wed, 11 May 2022 09:24:36 -0700 (PDT) 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; dkim=pass header.i=@suse.com header.s=susede1 header.b=RkkG4Psf; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243695AbiEKNcy (ORCPT + 99 others); Wed, 11 May 2022 09:32:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243673AbiEKNcu (ORCPT ); Wed, 11 May 2022 09:32:50 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2059BA9AD for ; Wed, 11 May 2022 06:32:49 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id A2B6F21C93; Wed, 11 May 2022 13:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1652275968; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jwd63v7lM58rzCcC/SeHOGCmmqEIrOQ6hior6FOrAsw=; b=RkkG4PsfRkKOQo0aSx0z20CSNuaT2/RKL2+NLM/u3xK9ZSnJS4cDwl1uZNr40hPbQHKfrU x3fQtf9Fufmb0lvMZCdfsIqn1LTqGX+LgUAv9nD4DmL8IfEVM46x4ZvGWbBxSGYwj2ufq/ a4Vd0ymq8LSv/32Nv/O6HflkJlh9Em8= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 67BCD139F9; Wed, 11 May 2022 13:32:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id cKjWFwC7e2KaBwAAMHmgww (envelope-from ); Wed, 11 May 2022 13:32:48 +0000 Message-ID: <23237c6d-4ec7-fd13-e2bd-4ce4c071ec6b@suse.com> Date: Wed, 11 May 2022 15:32:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH] x86/PAT: have pat_enabled() properly reflect state when running on e.g. Xen Content-Language: en-US From: Juergen Gross To: Jan Beulich , Andrew Lutomirski , "dave.hansen@linux.intel.com" , Peter Zijlstra Cc: lkml , "xen-devel@lists.xenproject.org" References: <9385fa60-fa5d-f559-a137-6608408f88b0@suse.com> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------AavKBMlBKEa0ldRixEb4hmW0" X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------AavKBMlBKEa0ldRixEb4hmW0 Content-Type: multipart/mixed; boundary="------------MPly0KBQY1Zw5ebu8eRMgFFB"; protected-headers="v1" From: Juergen Gross To: Jan Beulich , Andrew Lutomirski , "dave.hansen@linux.intel.com" , Peter Zijlstra Cc: lkml , "xen-devel@lists.xenproject.org" Message-ID: <23237c6d-4ec7-fd13-e2bd-4ce4c071ec6b@suse.com> Subject: Re: [PATCH] x86/PAT: have pat_enabled() properly reflect state when running on e.g. Xen References: <9385fa60-fa5d-f559-a137-6608408f88b0@suse.com> In-Reply-To: --------------MPly0KBQY1Zw5ebu8eRMgFFB Content-Type: multipart/mixed; boundary="------------Ips0c0oo1GWoitmVNUvRPLrM" --------------Ips0c0oo1GWoitmVNUvRPLrM Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 T24gMDMuMDUuMjIgMTQ6NTQsIEp1ZXJnZW4gR3Jvc3Mgd3JvdGU6DQo+IE9uIDI4LjA0LjIy IDE2OjUwLCBKYW4gQmV1bGljaCB3cm90ZToNCj4+IFRoZSBsYXRlc3Qgd2l0aCBjb21taXQg YmRkOGI2Yzk4MjM5ICgiZHJtL2k5MTU6IHJlcGxhY2U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CBteSBhcHByb2FjaCB3 aGVuICJub3BhdCIgaGFzIGJlZW4NCnNwZWNpZmllZCBhcyBib290IHBhcmFtZXRlciwgYXMg dGhhdCB3b3VsZCBiZSBqdXN0IGlnbm9yZWQuDQoNClNvIHJpZ2h0IG5vdyBJIGNhbid0IHRo aW5rIG9mIGEgYmV0dGVyIGFwcHJvYWNoIHRoYW4gdGhlIG9uZSBvZiBKYW4ncw0KcGF0Y2gu DQoNCg0KSnVlcmdlbg0K --------------Ips0c0oo1GWoitmVNUvRPLrM Content-Type: application/pgp-keys; name="OpenPGP_0xB0DE9DD628BF132F.asc" Content-Disposition: attachment; filename="OpenPGP_0xB0DE9DD628BF132F.asc" Content-Description: OpenPGP public key Content-Transfer-Encoding: quoted-printable -----BEGIN PGP PUBLIC KEY BLOCK----- xsBNBFOMcBYBCACgGjqjoGvbEouQZw/ToiBg9W98AlM2QHV+iNHsEs7kxWhKMjri oyspZKOBycWxw3ie3j9uvg9EOB3aN4xiTv4qbnGiTr3oJhkB1gsb6ToJQZ8uxGq2 kaV2KL9650I1SJvedYm8Of8Zd621lSmoKOwlNClALZNew72NjJLEzTalU1OdT7/i 1TXkH09XSSI8mEQ/ouNcMvIJNwQpd369y9bfIhWUiVXEK7MlRgUG6MvIj6Y3Am/B BLUVbDa4+gmzDC9ezlZkTZG2t14zWPvxXP3FAp2pkW0xqG7/377qptDmrk42GlSK N4z76ELnLxussxc7I2hx18NUcbP8+uty4bMxABEBAAHNHEp1ZXJnZW4gR3Jvc3Mg PGpnQHBmdXBmLm5ldD7CwHkEEwECACMFAlOMcBYCGwMHCwkIBwMCAQYVCAIJCgsE FgIDAQIeAQIXgAAKCRCw3p3WKL8TL0KdB/93FcIZ3GCNwFU0u3EjNbNjmXBKDY4F UGNQH2lvWAUy+dnyThpwdtF/jQ6j9RwE8VP0+NXcYpGJDWlNb9/JmYqLiX2Q3Tye vpB0CA3dbBQp0OW0fgCetToGIQrg0MbD1C/sEOv8Mr4NAfbauXjZlvTj30H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559UqvIB8AdgR3SAJGHHt4RKA0F7f5ipYBBrC6cyXJyyoprT10EMvU8VGiwXvT yJz3fjoYsdFzpWPlJEBRMedCot60g5dmbdrZ5DWClAr0yau47zpWj3enf1tLWaqc suylWsviuGjKGw7KHQd3bxALOknAp4dN3QwBYCKuZ7AddY9yjynVaD5X7nF9nO5B jR/i1DG86lem3iBDXzXsZDn8R38=3D =3D2wuH -----END PGP PUBLIC KEY BLOCK----- --------------Ips0c0oo1GWoitmVNUvRPLrM-- --------------MPly0KBQY1Zw5ebu8eRMgFFB-- --------------AavKBMlBKEa0ldRixEb4hmW0 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEhRJncuj2BJSl0Jf3sN6d1ii/Ey8FAmJ7uwAFAwAAAAAACgkQsN6d1ii/Ey8i FwgAgUuBfM4xSByIe0K7S4WShhmmmxfycYBb+tJq2OLkFHtV8mWauqEjvmW/DclycEYdoTW/3KeG Jio7fSP+bxH81f81j0/QV5F0Tv7IIumdzasXKj9H29lrwK/4Gbcbz/1gwQ8wOBackhqWHdJOXzs+ EEDDkHL9H2iOrRZgspdeJhXQ5rcj0Nxf6P5pWfEYRA2dcNTWYpZJxzuwYDm6MYyK4mFFrfbgyqBX aOjEWBbomjbSZhUDa4wfcj5fV27V7JbC39NvrWf3LF/Qhtwy1m6m6RvmMlvadIY/tPvtA7zTHS5S uKxom25fc5r+cn6lY2IBbx7crIfcIytjkK17Vl4ZCg== =NVep -----END PGP SIGNATURE----- --------------AavKBMlBKEa0ldRixEb4hmW0--