Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E21EBC636CC for ; Tue, 7 Feb 2023 09:12:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230187AbjBGJMd (ORCPT ); Tue, 7 Feb 2023 04:12:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbjBGJMb (ORCPT ); Tue, 7 Feb 2023 04:12:31 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6FE623846 for ; Tue, 7 Feb 2023 01:12:29 -0800 (PST) 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 88A4560FED; Tue, 7 Feb 2023 09:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1675761148; 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=ieDQhqhMvtIeZVOGVyZ9EHW2yeVFYggP1fdTqRjwWPw=; b=Vc2P1BkV9tO1+P98cK8TsEy2Ra2CmmrYLd2ydrNif8RCs+MKbu8CgO+G2lSVdoEOfsmoxE N97MZwKkPyl4yiPPdtuKOBmWW55peXpTbNV6PeIODTgQSH+noL3xrfp2FGZniDdH5IwB1S NkMbBJIbUtZHDoQOYkUkBSBQg4elM+k= 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 2C67913A8C; Tue, 7 Feb 2023 09:12:28 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id YX0qCfwV4mNFfwAAMHmgww (envelope-from ); Tue, 07 Feb 2023 09:12:28 +0000 Message-ID: <47fcd1a8-1c5a-0044-38c4-cf04095c1150@suse.com> Date: Tue, 7 Feb 2023 10:12:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, x86@kernel.org, lists@nerdbynature.de, mikelley@microsoft.com, torvalds@linux-foundation.org, Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" References: <20230207072902.5528-1-jgross@suse.com> <20230207072902.5528-3-jgross@suse.com> From: Juergen Gross Subject: Re: [PATCH 2/6] x86/pat: check for MTRRs enabled in memtype_reserve() In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------56CzqqYwcPQVkgangChrUD7S" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------56CzqqYwcPQVkgangChrUD7S Content-Type: multipart/mixed; boundary="------------ygB52Fqzd40PUkLQBu5QNqll"; protected-headers="v1" From: Juergen Gross To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, x86@kernel.org, lists@nerdbynature.de, mikelley@microsoft.com, torvalds@linux-foundation.org, Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Message-ID: <47fcd1a8-1c5a-0044-38c4-cf04095c1150@suse.com> Subject: Re: [PATCH 2/6] x86/pat: check for MTRRs enabled in memtype_reserve() References: <20230207072902.5528-1-jgross@suse.com> <20230207072902.5528-3-jgross@suse.com> In-Reply-To: --------------ygB52Fqzd40PUkLQBu5QNqll Content-Type: multipart/mixed; boundary="------------Yh9nZUpsykTjqi2Snke3EUqA" --------------Yh9nZUpsykTjqi2Snke3EUqA Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 T24gMDcuMDIuMjMgMDk6NDksIEluZ28gTW9sbmFyIHdyb3RlOg0KPiANCj4gKiBKdWVyZ2Vu IEdyb3NzIDxqZ3Jvc3NAc3VzZS5jb20+IHdyb3RlOg0KPiANCj4+IFRvZGF5IG1lbXR5cGVf cmVzZXJ2ZSgpIGJhaWxzIG91dCBlYXJseSBpZiBwYXRfZW5hYmxlZCgpIHJldHVybnMgZmFs c2UuDQo+PiBUaGUgc2FtZSBjYW4gYmUgZG9uZSBpbiBjYXNlIE1UUlJzIGFyZW4ndCBlbmFi bGVkLg0KPj4NCj4+IFRoaXMgd2lsbCByZWluc3RhdGUgdGhlIGJlaGF2aW9yIG9mIG1lbXR5 cGVfcmVzZXJ2ZSgpIGJlZm9yZSBjb21taXQNCj4+IDcyY2JjOGYwNGZlMiAoIng4Ni9QQVQ6 IEhhdmUgcGF0X2VuYWJsZWQoKSBwcm9wZXJseSByZWZsZWN0IHN0YXRlIHdoZW4NCj4+IHJ1 bm5pbmcgb24gWGVuIikuIFRoZXJlIGhhdmUgYmVlbiByZXBvcnRzIGFib3V0IHRoYXQgY29t bWl0IGJyZWFraW5nDQo+PiBTRVYtU05QIGd1ZXN0cyB1bmRlciBIeXBlci1WLCB3aGljaCB3 YXMgdHJpZWQgdG8gYmUgcmVzb2x2ZWQgYnkgY29tbWl0DQo+PiA5MGI5MjZlNjhmNTAgKCJ4 ODYvcGF0OiBGaXggcGF0X3hfb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IG9mIGp1c3QgdHVybmluZyBvZmYgdGhlIEFQSS4NCg0KWWVzLCB0 aGF0J3MgYmFzaWNhbGx5IHRoZSBpc3N1ZSBkaXNjdXNzZWQgaW4gW3BhdGNoIDAvNl0uDQoN Ckl0IHNob3VsZCBzdGlsbCBiZSBiZXR0ZXIgdGhhbiB0aGUgb3JpZ2luYWwgY2FzZSAoUEFU IGFuZCBNVFJSIG9mZiwgYnV0DQp0aGUgYWJpbGl0eSB0byB1c2UgUEFUIG5ldmVydGhlbGVz cyksIHRob3VnaC4NCg0KPiANCj4gQWxzbywgc3BlbGluZyBuaXQ6DQo+IA0KPiAgICAgcy9v bmUgb2YgYm90aA0KPiAgICAgIC9vbmUgb3IgYm90aA0KDQpIbW0sIGJ1dCBvbmx5IGlmIEkg ZHJvcCB0aGUgImF0IGxlYXN0Ii4gSSBkb24ndCByZWFsbHkgbWluZCBlaXRoZXIgd2F5Lg0K DQoNCkp1ZXJnZW4NCg== --------------Yh9nZUpsykTjqi2Snke3EUqA 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+uty4bMxABEBAAHNHEp1ZXJnZW4gR3Jvc3M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o45mm 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----- --------------Yh9nZUpsykTjqi2Snke3EUqA-- --------------ygB52Fqzd40PUkLQBu5QNqll-- --------------56CzqqYwcPQVkgangChrUD7S Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEhRJncuj2BJSl0Jf3sN6d1ii/Ey8FAmPiFfsFAwAAAAAACgkQsN6d1ii/Ey/q YAgAim/rpihkMhugugo5zwunFC68eRv84Gn+jSJFY312I7R/406i9WR7GShE7eyPYs2089GsbQLN IoHaAEyCu8sQMrXz/QtZuUNHlD/uEC3ecCwtDvtPXj+eZ4nQg/v+m5TU2dgBdS6kkmBCrAwmvbLK BhZj2EDw3zSclJ37pa9IPiBhTF6cmGTqupOe7koSxOdOq3RYX7nYOEMlavHH6mGq4hgCB9Gitot/ Fe33Lj4eT44htMbr2zJnUeQsZhJ3BJSIQ3IIOprTnKwHi9rJ61bE3sC2Nz/XTokd6mdH1NcBNmr4 XAFzwsdZshFAvlg7LBDgJuEbhkhO6BVsFz+VOmmn4A== =xnHm -----END PGP SIGNATURE----- --------------56CzqqYwcPQVkgangChrUD7S--