Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4262768rwr; Mon, 8 May 2023 05:30:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5xGy2i3M5+exE8cbUacbythlYU0ht00da4+QsTZ8GTfUXV2UXoV0xJ3q4fdiJXa8Q6NkNI X-Received: by 2002:a05:6a00:1a0e:b0:642:fbed:2819 with SMTP id g14-20020a056a001a0e00b00642fbed2819mr12525842pfv.22.1683549050094; Mon, 08 May 2023 05:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683549050; cv=none; d=google.com; s=arc-20160816; b=XAR1CkM/5390e4FaUy02kIcL+o6gG387TiI7jEYfu53NGVW+A5DLd8I0TWWWZmkL3t 7eBa7+C4ST1OqhoOwLqB+8njLO5yypBT8lJ7K7jDqvR1uQpvkjIxZraRyFOEBnX9pvPb N0AS4ZcPn/4iw61zBBodQnIgExqa2y8mCLoC5Gq9k1sZtayHf7ReaPpAuCPLo0PGfl1B nZSvi9ZNkYIefWv5tmEZsfyu31tJ3qXd0ILSFBMkLFlcsKydoRI4sY/krDxPQ9u54a73 vRQxb9nVmojv5jE8sWi+sQfm9oGO6aqqpXOvaSZH7s6AVq6t4Ab4AQgtkoM5V7V48fGB yqyw== 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=JfEzsX5fFqzg3GqO4ASKIFVD991JJNu2nfu4iM95o4k=; b=1DptwgHg/YN6HnfPNr49XcgwRrxfcNuLTv217qfjxwarTboqs+Cp3Kd/LzU5H2qCMq 5tzlW0c0Qr4+OfvlCS3wD8xlmsV9jlBE4ADktsO4YfEtmwhJ31WBf7wpLgkfp/jP4Dj3 mVgH0cUnnWhLzW/UIBFQl0wpTL/ohEzrDxPRXMzMRGXnzj9eN4Lr6soDxaIi680dENoz TYC7UEO3Ct6icZJNXzG5gRH+hMc1zUnkT9xj2epnbMKunVMR6eVPkvJsCIzABUK+qHSm OIeNqTQKm5pPspSo82YdAaV6b7iqmETSRDWB7aYlO1DqkajVMNZwpzRy8PTyMR1eXXlX e17g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=XFWpOEXY; 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 n12-20020aa7984c000000b006464f29ed9dsi1428950pfq.385.2023.05.08.05.30.31; Mon, 08 May 2023 05:30:50 -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=XFWpOEXY; 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 S234102AbjEHMXZ (ORCPT + 99 others); Mon, 8 May 2023 08:23:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233987AbjEHMXX (ORCPT ); Mon, 8 May 2023 08:23:23 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78B8136109 for ; Mon, 8 May 2023 05:23:13 -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 CA3CF1FE6F; Mon, 8 May 2023 12:23:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1683548591; 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=JfEzsX5fFqzg3GqO4ASKIFVD991JJNu2nfu4iM95o4k=; b=XFWpOEXY9ZVf8KJ5PIJ5o270Wf4qzrXja2wsutqT1u5mtdTqr9CvN/1SUdZsVNQDFIoQxJ gGCupmNUTVbGhSzNKVjBEX1M1DjydDgF1wY/sDd8AXywAe4gYUuZu+sS/0jE5B3A4y+QaH VehOE8Kmiih8Ql+bnCAkyAmeMVCX4Jk= 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 9044913499; Mon, 8 May 2023 12:23:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 4FKFIa/pWGTjSQAAMHmgww (envelope-from ); Mon, 08 May 2023 12:23:11 +0000 Message-ID: Date: Mon, 8 May 2023 14:23:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH] x86/mm: fix __swp_entry_to_pte() for Xen PV guests Content-Language: en-US To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" References: <20230306123259.12461-1-jgross@suse.com> From: Juergen Gross In-Reply-To: <20230306123259.12461-1-jgross@suse.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------JaV9Rv4kS7mlwqX6vmj47y7E" X-Spam-Status: No, score=-6.2 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) --------------JaV9Rv4kS7mlwqX6vmj47y7E Content-Type: multipart/mixed; boundary="------------UrDMQB0j5zAbZpAHvtC42DDR"; protected-headers="v1" From: Juergen Gross To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Message-ID: Subject: Re: [PATCH] x86/mm: fix __swp_entry_to_pte() for Xen PV guests References: <20230306123259.12461-1-jgross@suse.com> In-Reply-To: <20230306123259.12461-1-jgross@suse.com> --------------UrDMQB0j5zAbZpAHvtC42DDR Content-Type: multipart/mixed; boundary="------------0LN5Q0TgzrIHoNeC1a0ZPzpi" --------------0LN5Q0TgzrIHoNeC1a0ZPzpi Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 UElORyAoM3JkIG9uZSwgYWZ0ZXIgMiBtb250aHMgb2YgZ2V0dGluZyBubyBmZWVkYmFjaykh DQoNCkknbSBpbmNsaW5lZCB0byBjYXJyeSBpdCBqdXN0IHZpYSB0aGUgWGVuIHRyZWUgaWYg eDg2IG1haW50YWluZXJzIGNvbnRpbnVlDQp0byBpZ25vcmUgaXQgLi4uDQoNCg0KSnVlcmdl bg0K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rIHoNeC1a0ZPzpi 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/sEOv8Mr4NAfbauXjZlvTj30H2jO0u +6WGM6nHwbh2l5O8ZiHkH32iaSTfN7Eu5RnNVUJbvoPHZ8SlM4KWm8rG+lIkGurq qu5gu8q8ZMKdsdGC4bBxdQKDKHEFExLJK/nRPFmAuGlId1E3fe10v5QL+qHI3EIP tyfE7i9Hz6rVwi7lWKgh7pe0ZvatAudZ+JNIlBKptb64FaiIOAWDCx1SzR9KdWVy Z2VuIEdyb3NzIDxqZ3Jvc3NAc3VzZS5jb20+wsB5BBMBAgAjBQJTjHCvAhsD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pi-- --------------UrDMQB0j5zAbZpAHvtC42DDR-- --------------JaV9Rv4kS7mlwqX6vmj47y7E Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEhRJncuj2BJSl0Jf3sN6d1ii/Ey8FAmRY6a8FAwAAAAAACgkQsN6d1ii/Ey9i xwf9FKWh0RZnx7cNg3pFU8zCWb3kfDXtdYMW/G3Wpfq5gsGTFuOTqVbRXETi0nu3zZd0wwrX5Fpu zu0tpk1n1ClD5zlqeBsqY0D/cmbMQxldhqZ6WO748YqAIde9+ptyo8bRS2kA/Ep12QEtirzkCg4o Go6hNa5YqZTl3TbFxTct+ZYzgAqCl0DjyweqLvqxGl6BQzzri9mCiz2ltmiy0nyhhtuMtAkX5NLq sMiWauA8pOamiDWo19dFAlm/iLU7JpK89wXWagpx8CpKj5aDZe3qxMKOqOuMRWCrR93Yv1yF1s8I K0VLHN2Mjkba3A1pFDsTSepx1j9Y2FTqU5DO+oU+Og== =I+Tg -----END PGP SIGNATURE----- --------------JaV9Rv4kS7mlwqX6vmj47y7E--