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 8A182C61DA4 for ; Tue, 14 Feb 2023 07:02:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231747AbjBNHCG (ORCPT ); Tue, 14 Feb 2023 02:02:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbjBNHCC (ORCPT ); Tue, 14 Feb 2023 02:02:02 -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 DF50B76B1 for ; Mon, 13 Feb 2023 23:01:59 -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 D87F020D9E; Tue, 14 Feb 2023 07:01:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1676358117; 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=z0YGZhSOGQ7xd7ruMQjs1cptR3vMnMb9ZbHnktKbaig=; b=nYRMNqOHz3G7Ci+1cQAc9D9xaGmb5HgpHEOZldWy6DyEyv+m/0KE9a+Sn41rEEOxFlLlhp nbl1glQtbdUjcbSCxiZ5Mzf3tDHglbGkWkrwRDXWmKqnaIDVs4b9IrP5vJPwat+WbpLEWw 9QJwiXnOPBSFL0h4BotJ4SSkytDzExc= 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 92F1A138E3; Tue, 14 Feb 2023 07:01:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ZGyBIuUx62P1CQAAMHmgww (envelope-from ); Tue, 14 Feb 2023 07:01:57 +0000 Message-ID: <01fa7eb8-e534-1c67-3629-7834e7df3c5d@suse.com> Date: Tue, 14 Feb 2023 08:01:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v2 2/8] x86/mtrr: support setting MTRR state for software defined MTRRs To: Borislav Petkov Cc: linux-kernel@vger.kernel.org, x86@kernel.org, lists@nerdbynature.de, mikelley@microsoft.com, torvalds@linux-foundation.org, Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" References: <20230209072220.6836-1-jgross@suse.com> <20230209072220.6836-3-jgross@suse.com> <6257114d-a957-f586-145c-d2a885417360@suse.com> <13520f45-7f4d-417e-f9a2-40c32cd0e739@suse.com> Content-Language: en-US From: Juergen Gross In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------S1NoUHM5K4LX8gHZcnFAdtjy" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------S1NoUHM5K4LX8gHZcnFAdtjy Content-Type: multipart/mixed; boundary="------------cUApi3aeM5kRUWcxq23avsi6"; protected-headers="v1" From: Juergen Gross To: Borislav Petkov Cc: linux-kernel@vger.kernel.org, x86@kernel.org, lists@nerdbynature.de, mikelley@microsoft.com, torvalds@linux-foundation.org, Thomas Gleixner , Ingo Molnar , Dave Hansen , "H. Peter Anvin" Message-ID: <01fa7eb8-e534-1c67-3629-7834e7df3c5d@suse.com> Subject: Re: [PATCH v2 2/8] x86/mtrr: support setting MTRR state for software defined MTRRs References: <20230209072220.6836-1-jgross@suse.com> <20230209072220.6836-3-jgross@suse.com> <6257114d-a957-f586-145c-d2a885417360@suse.com> <13520f45-7f4d-417e-f9a2-40c32cd0e739@suse.com> In-Reply-To: --------------cUApi3aeM5kRUWcxq23avsi6 Content-Type: multipart/mixed; boundary="------------az6IFU6bMTuFKJ4wkDOFwAhV" --------------az6IFU6bMTuFKJ4wkDOFwAhV Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 T24gMTMuMDIuMjMgMTk6NDMsIEJvcmlzbGF2IFBldGtvdiB3cm90ZToNCj4gT24gTW9uLCBG ZWIgMTMsIDIwMjMgYXQgMDQ6MzY6MTJQTSArMDEwMCwgSnVlcmdlbiBHcm9zcyB3cm90ZToN Cj4+IEluIHRoZSBlbmQgSSB3b3VsZG4ndCBtaW5kIGRyb3BwaW5nIHRoZSBmaXhlZCBNVFJS cyBmcm9tIHRoZSBpbnRlcmZhY2UsIGFzDQo+PiB0aGV5IGFyZSBjdXJyZW50bHkgbm90IG5l ZWRlZCBhdCBhbGwuDQo+IA0KPiBZZXMsIHRoZSBsZXNzIHRoZSBiZXR0ZXIuDQo+IA0KPj4g SSdkIHNheSB3ZSBnbyB3aXRoIHdoYXQgaXMgbmVlZGVkIHJpZ2h0IG5vdy4gQW5kIGhhdmlu ZyBhIHNpbmdsZSBpbnRlcmZhY2UNCj4+IG1ha2VzIGFsbCB0aGUgc2FuaXR5IGNoZWNraW5n IHlvdSBhcmUgYXNraW5nIGZvciBlYXNpZXIuDQo+IA0KPiBJIGd1ZXNzIEkgbmVlZCB0byBy ZW1lbWJlciB0byBmaW5pc2ggZGVzaWduaW5nIHRoaXMgaWYgbW9yZSB1c2Vycw0KPiBhcHBl YXIuLi4NCj4g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sNiArNjgyLDcgQEAgdm9pZCBfX2luaXQgbXRy cl9icF9pbml0KHZvaWQpDQo+ICAgDQo+ICAgCQlyZXR1cm47DQo+ICAgCX0NCj4gKyNlbmRp Zg0KDQpJIHdpbGwgY2hhbmdlIHRoaXMgYSBsaXR0bGUgYml0IGluIG9yZGVyIHRvIGF2b2lk IHRoZSAjaWZkZWYgYnkgdXNpbmcNCiJXQVJOX09OKGh5cGVydmlzb3JfaXNfdHlwZSgpID09 IFg4Nl9IWVBFUl9OQVRJVkUpOyINCg0KDQpKdWVyZ2VuDQo= --------------az6IFU6bMTuFKJ4wkDOFwAhV 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 vpB0CA3db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PONxF5D+/tvgkPfDAfF77zy2AH1vJzQ1fOU8lYFpZXTXIH b+559UqvIB8AdgR3SAJGHHt4RKA0F7f5ipYBBrC6cyXJyyoprT10EMvU8VGiwXvT yJz3fjoYsdFzpWPlJEBRMedCot60g5dmbdrZ5DWClAr0yau47zpWj3enf1tLWaqc suylWsviuGjKGw7KHQd3bxALOknAp4dN3QwBYCKuZ7AddY9yjynVaD5X7nF9nO5B jR/i1DG86lem3iBDXzXsZDn8R38=3D =3D2wuH -----END PGP PUBLIC KEY BLOCK----- --------------az6IFU6bMTuFKJ4wkDOFwAhV-- --------------cUApi3aeM5kRUWcxq23avsi6-- --------------S1NoUHM5K4LX8gHZcnFAdtjy Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEhRJncuj2BJSl0Jf3sN6d1ii/Ey8FAmPrMeQFAwAAAAAACgkQsN6d1ii/Ey+o XQf/Q5r1U1n0QoBdHmYzZZJGoCODmMSmmdDef5FhXgJEzZbQWKdd9uS1jn/5RGZGTsTxPDpWPMio T/Q5sj9IFpiLPLhFtYMVise7bGxS/0lI5wNh9i2Qsc1LdS7y94RQcZ7IUnpyqnS98xBos726H/Nr bQnVLqWnhs0t10tBWhYFr6aOheT9E92p9pDkEVEgESFVxQNdxvixQlCz3OPLAvvG5ZUP00QbmMgY GcbxXrmpxoGVO9zc1k63O5MjmZqjCuLCgf4A2BBcWHe5MmithOoKgc6JRZP6tQI9wtabbFrAFIM5 D2e/I4xDqFTcF+D8mHmFjU0Eo+mIh4n2W3A2MO+Q1g== =QCUN -----END PGP SIGNATURE----- --------------S1NoUHM5K4LX8gHZcnFAdtjy--