Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp710770iob; Tue, 3 May 2022 08:07:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjcl+QQBzQimsH4QX8uE8iggY/C5gMGH/guzjoKT/XwZrd4vYoekTnkrW8BAa+ELsVcpr3 X-Received: by 2002:a17:907:3e28:b0:6f4:3ba3:504e with SMTP id hp40-20020a1709073e2800b006f43ba3504emr11138667ejc.632.1651590423766; Tue, 03 May 2022 08:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651590423; cv=none; d=google.com; s=arc-20160816; b=T64typTEzVcfmqEq3i3J/GlkDbGfclDqnTdzAt4sO97duS3eb++lzzzv7LeVy3OsM9 FkCCtkc6CpycmbQL6WPqY78o/84g4P8zJxJrOXTt3s+oWHF/QkHF2MNCnHxHkUE6rQJJ Q3UuSvCEfFBROpV+HM7Y7T/DUEVoh1JqjxwhEWlstrZdvCehOr1PbUWLYgLamLSOW1u7 RrOEj9UrYSFuQZGax8kxKQphI9yhLaIcO3spLxia+58XpomOGu9oXZGWJUcqUMam8oLr 4MYALvlkNIq2VsuBh8Y6EE3zhj5dol+Tb3h+m4WHjI+aeYghkUatNBnOOTcqPWhM5pC5 g/zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=OZcRYDL4mo/Uhq/Ypcn1akCbXvaz/7KYmlPdJUuwMeo=; b=DStQrKKt3TaTlO251YiBC74uC1OS8Ja7L0IXJNSm7POxeGxGQvh6R1bzv4YgThvtN7 6+W3hVMDK9P+5MNtYTq8Y5Cr0U6LVcm2CY2LXV6gIoxRu3dsPEKFMgTYlDGBAop9u33M rK43TYEvNjvF7YZc6gwRlE3QCa4mleczIwoyNnfUaMO4MxNjlIc+Dzz9aAZ7fvQULr/P ISIApBE4ya7aIxoiVetblgTTKB14yQdor1wEp536bpH1i6EWOPCfLO83jyL4A5HG94la BNpWNUDK12faSmZMmA+BX3hbyvpgxnL1V6XPVGGd1FH49QiYoYXZtoGfg0TbPqKBj6/9 tAKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=biIOAekY; 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 r24-20020a170906549800b006e7fd3f1dd2si14423804ejo.1001.2022.05.03.08.06.25; Tue, 03 May 2022 08:07:03 -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=biIOAekY; 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 S235599AbiECM5z (ORCPT + 99 others); Tue, 3 May 2022 08:57:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230339AbiECM5t (ORCPT ); Tue, 3 May 2022 08:57:49 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D4BC1EEF6 for ; Tue, 3 May 2022 05:54:16 -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-out2.suse.de (Postfix) with ESMTPS id AC9E71F74B; Tue, 3 May 2022 12:54:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1651582455; 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=OZcRYDL4mo/Uhq/Ypcn1akCbXvaz/7KYmlPdJUuwMeo=; b=biIOAekYyM13tqEMQ28BFriAekeD8a8AL/u0Thmc3kejLomQk8x2mqufl//RjpRJeKs/wv FMbdjUnDp7papJ/a10PQHD0jcN0KjaPcfSTpCUVcp+hZqquEHVst6HhCQc0AXUnTx/ywJI V/RjrV380KENZxqZIUyTpGa7Vg+SrIc= 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 77C8713ABE; Tue, 3 May 2022 12:54:15 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id PoIyG/clcWIcOgAAMHmgww (envelope-from ); Tue, 03 May 2022 12:54:15 +0000 Message-ID: Date: Tue, 3 May 2022 14:54:15 +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 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> From: Juergen Gross In-Reply-To: <9385fa60-fa5d-f559-a137-6608408f88b0@suse.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------aJOfws9bZypWvjfxLcnIg1K0" X-Spam-Status: No, score=-7.3 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 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) --------------aJOfws9bZypWvjfxLcnIg1K0 Content-Type: multipart/mixed; boundary="------------oBvhHoX6mHtzA39drHHbQU0z"; 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: 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: <9385fa60-fa5d-f559-a137-6608408f88b0@suse.com> --------------oBvhHoX6mHtzA39drHHbQU0z Content-Type: multipart/mixed; boundary="------------Md7kWjLHF562CX34UgSWxu3K" --------------Md7kWjLHF562CX34UgSWxu3K Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 T24gMjguMDQuMjIgMTY6NTAsIEphbiBCZXVsaWNoIHdyb3RlOg0KPiBUaGUgbGF0ZXN0IHdp dGggY29tbWl0IGJkZDhiNmM5ODIzOSAoImRybS9pOTE1OiByZXBsYWNlIFg4Nl9GRUFUVVJF X1BBVA0KPiB3aXRoIHBhdF9lbmFibGVkKCkiKSBwYXRfZW5hYmxlZCgpIHJldHVybmluZyBm YWxzZSAoYmVjYXVzZS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aGUgUEFUIE1T UiBzaG91bGQgb2NjdXIuDQo+IA0KPiBGb3IgdGhlIG5ldyBib29sZWFuIHRvIGxpdmUgaW4g LmluaXQuZGF0YSwgaW5pdF9jYWNoZV9tb2RlcygpIGFsc28gbmVlZHMNCj4gbW92aW5nIHRv IC5pbml0LnRleHQgKHdoZXJlIGl0IGNvdWxkL3Nob3VsZCBoYXZlIGxpdmVkIGFscmVhZHkg YmVmb3JlKS4NCj4gDQo+IFNpZ25lZC1vZmYtYnk6IEphbiBCZXVsaWNoIDxqYmV1bGljaEBz dXNlLmNvbT4NCg0KSSB0aGluayB0aGlzIGFwcHJvYWNoIGlzbid0IHRoZSBiZXN0IHdheSB0 byB0YWNrbGUgdGhlIGlzc3VlLg0KDQpJdCBjYW4gYmUgc29sdmVkIHJhdGhlciBlYXNpbHkg Ynkgbm90IGRlcml2aW5nIHRoZSBzdXBwb3J0ZWQgY2FjaGluZw0KbW9kZXMgdmlhIHBhdF9l bmFibGVkKCksIGJ1dCBieSBhZGRpbmcgc3BlY2lmaWMgZnVuY3Rpb25zIHRvIHF1ZXJ5DQp0 aGUgbmVlZGVkIGNhY2hpbmcgbW9kZSBmcm9tIHRoZSBQQVQgdHJhbnNsYXRpb24gdGFibGVz LCBhbmQgdG8gdXNlDQp0aG9zZSBmdW5jdGlvbnMgaW5zdGVhZCBvZiBwYXRfZW5hYmxlZCgp Lg0KDQpJJ20gcHJlcGFyaW5nIGEgcGF0Y2ggZm9yIHRoYXQgcHVycG9zZS4NCg0KDQpKdWVy Z2VuDQo= --------------Md7kWjLHF562CX34UgSWxu3K 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 oyspZK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I//x/e2AaIHpzK5h88NEawQsaNRpNSrcfbFmAg987ATQRTjHAWAQgAyzH6 AOODMBjgfWE9VeCgsrwH3exNAU32gLq2xvjpWnHIs98ndPUDpnoxWQugJ6MpMncr 0xSwFmHEgnSEjK/PAjppgmyc57BwKII3sV4on+gDVFJR6Y8ZRwgnBC5mVM6JjQ5x Dk8WRXljExRfUX9pNhdE5eBOZJrDRoLUmmjDtKzWaDhIg/+1Hzz93X4fCQkNVbVF LELU9bMaLPBG/x5q4iYZ2k2ex6d47YE1ZFdMm6YBYMOljGkZKwYde5ldM9mo45mm we0icXKLkpEdIXKTZeKDO+Hdv1aqFuAcccTg9RXDQjmwhC3yEmrmcfl0+rPghO0I v3OOImwTEe4co3c1mwARAQABwsBfBBgBAgAJBQJTjHAWAhsMAAoJELDendYovxMv Q/gH/1ha96vm4P/L+bQpJwrZ/dneZcmEwTbe8YFsw2V/Buv6Z4Mysln3nQK5ZadD 534CF7TDVft7fC4tU4PONxF5D+/tvgkPfDAfF77zy2AH1vJzQ1fOU8lYFpZXTXIH b+559UqvIB8AdgR3SAJGHHt4RKA0F7f5ipYBBrC6cyXJyyoprT10EMvU8VGiwXvT yJz3fjoYsdFzpWPlJEBRMedCot60g5dmbdrZ5DWClAr0yau47zpWj3enf1tLWaqc suylWsviuGjKGw7KHQd3bxALOknAp4dN3QwBYCKuZ7AddY9yjynVaD5X7nF9nO5B jR/i1DG86lem3iBDXzXsZDn8R38=3D =3D2wuH -----END PGP PUBLIC KEY BLOCK----- --------------Md7kWjLHF562CX34UgSWxu3K-- --------------oBvhHoX6mHtzA39drHHbQU0z-- --------------aJOfws9bZypWvjfxLcnIg1K0 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEhRJncuj2BJSl0Jf3sN6d1ii/Ey8FAmJxJfcFAwAAAAAACgkQsN6d1ii/Ey+3 Igf7BpIQ8c6ysulqPCIkyEw3p1kCKxgP8JBGblJfEGGMlO+cXYd7OFSAs/ANtJ+zR+pwlHZiAfn5 f7LPqjkF4EEyuixC8yTApbuqf+6N4mB4IvG/V/yAv29LT4H9mZCa7kPjrCWVdKFBWDZgP2UNXvUJ 60WWO1Bq8L7yLNKTfuxZj08Zk6AqIy8NMWBN7JeGeKqxa09IDcDVakEsmA2jAqQ4qbZVSf3X7+hl Bqccd+byU5CuC34hELfGdu2h1tU6d9u53Qxr0AqmE74QqlFLH4RnBOtoaKOkjUoFhk2cpsebumt2 h3AhEncj3eX/WsYkbkdtHPm2K6n7ELaehRcqrDjbjw== =EF2j -----END PGP SIGNATURE----- --------------aJOfws9bZypWvjfxLcnIg1K0--