Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3278262imw; Mon, 18 Jul 2022 05:27:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s7rK1HeVjUNinAfd1/HjBZoZgfOBT0YrfHCGsJMok0z3Btpa1KZdyUa02Ia2+hxIS+KuSJ X-Received: by 2002:a63:4a62:0:b0:412:8c83:a36c with SMTP id j34-20020a634a62000000b004128c83a36cmr24231522pgl.404.1658147253720; Mon, 18 Jul 2022 05:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658147253; cv=none; d=google.com; s=arc-20160816; b=qdzt4hS6Ub+7unPxNcfkSK17XKlAboaz6YZS6EPCtWVkKKpKtos+8/u0UxNquyS+e8 tQkMuss/SKasOz/CxuHmbsIla6IUK0/dWiASY9Tjcx4+LHGUKPZEm/tZdFg87OdRJPxj 1mi09px+obd/c4uTfAepeLFWYZpfk/c9/P9qNUYqQnswKo6swzqH8dCauipz59T4nEL/ vfX/sME5+iD3Kj65ZEPZ7+jrgfIfk+J+XbwZitnG2+i5Tbb3SFUfDSDg+V1Az8z+l+Yq bvV/uvYStcE/Pyc4v/9U9Kdo0vUHvk7GqxUS2FIP4UwbLbx902Nb3obAsGsFiKaTYZug f3oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vU3ZLqrkSQIaJtC6Zr4tW2XgNY1XaXjXDHRa4si9P9Y=; b=x1VnsBtT7KpqW2gAyOopjPGGuU7W+VwZZk9oCru+TCtVTE61oWiGSfwwPOHxSBaOBV tzX7xDgGcVPX/wQNM4tuUWIeEYOtfds2RdXuYe3uGxHgQIFGy34YbtRSv4rp557/R36i 2YcnWbZJDJzNLVAk11Qk3e0NgXNiqXTAE94ky+9iuFUr0dBtggJDdKNMjIrRZ1sUgzJQ DBU74KFxX2Ie3pDKg0nHpbUTTkC2Q+6Ti7o25VVc13rAPnahGhi+98wjCLE28qMY0bWA zh7F8rYvaOcomw+3YYd9oQM73/Yv4qFc+Udb0qWH39Dam4XK1mK5YPoHEz7vEdOfYDHf IXYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netscape.net header.s=a2048 header.b=oPYNapj1; 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=REJECT sp=REJECT dis=NONE) header.from=netscape.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi17-20020a17090b4b5100b001f00f6f1b21si14080275pjb.131.2022.07.18.05.27.19; Mon, 18 Jul 2022 05:27:33 -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=@netscape.net header.s=a2048 header.b=oPYNapj1; 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=REJECT sp=REJECT dis=NONE) header.from=netscape.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233396AbiGRLbo (ORCPT + 99 others); Mon, 18 Jul 2022 07:31:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232593AbiGRLbn (ORCPT ); Mon, 18 Jul 2022 07:31:43 -0400 Received: from sonic305-19.consmr.mail.gq1.yahoo.com (sonic305-19.consmr.mail.gq1.yahoo.com [98.137.64.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BDA91AD84 for ; Mon, 18 Jul 2022 04:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netscape.net; s=a2048; t=1658143901; bh=vU3ZLqrkSQIaJtC6Zr4tW2XgNY1XaXjXDHRa4si9P9Y=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=oPYNapj14JGsOS7fJFGjI+LrA5nNdtYn9td8zrCbJYSEM7TcVdxtJ/T1OCjWwgJC/5e5UVr9pYmQnbgnrkMQKF0z/y8T5cfHdrHG7lTJQCyIibosYrpGmiLiNv6QCpgqE9vb6jxUAN3iCnbzX1RdVHINPx2GVJBmVg/UXprpqf+JN9KNdn7BkXP9iZ4kEjvMnLV3MBgo14vfTRjnfn5hmfIdSwh5PDtAveYr6FXOQREts6/cYsNTlAlQEFdU0bqkbgJ3L6UhIRrN6gJemBPJnTpvsgLT3Q6ZISDSRsh7Ho0PolX2GoZYMCUJ+iDhTDRbNzUGU2jfRhxivbCQA4gwsw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1658143901; bh=wwUT/2GVX9bgSP9JuL8dtb1HFyBJuTI3goTr/Edxfai=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=s71RGujzCiw2tODvXD/dVyDC7f/sqmsmHT4wIHAzxWUHncxVOZvspfoMoBBdObNQgwajcdfof2BYqO5VXTf8MFLdiP4sSxHsWotMyJZ+KMrDjkmkrM6jkN/6rMdrB+gF5WQJdUCYtHO/8F6mH5A89Q9DKhAkOmuOD+/T0VL2ZniGhhLkyf6YvDN/baYfkSkPMSmplkbfD2gVMT+3Q5YFURs5FBycKDPfE/Sc8rtHKuthcuPo+l7nqqLQBuoYwZPehCY3Od+xvVsS4JyQIoWlTo5f+DqYaNx8ofar88HOUyQim2iw7ibRY91dgyu3kZzCAJxeJbzvvYU2zVG0MQNfiQ== X-YMail-OSG: fHo10v8VM1nZLCPyFeGtx9WXzqf5ZY2n9GOP9e9q3ThLL78RO8XSSpXsabO2wJ0 Sycro7ZYB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GfxVaoMs.79LEq28Ak6LT5JcjQowFDqtbM4J7i0hqhgXgsMZkS_4_eVI7zCeA hkiSdVwJzWlNVGb6DWvWOWCdsJlhjrZ8coyFJniLpLfk12Z2tlZ_4xplCODdt77lDRDFanEP5mTl k6d9pQjdDJO9YMCkp0xlyjMvWX8dtlmNhEymB7MIKxwCUfG8sKFeP4O6iNplkW0x2UQXdSNaSfli wO0FyLdfHfEO_ovQYnOWInXOToJvISFSHzUB0nJ39Svty6f0unawJsY0bxxPj13uQ3pqL1KZrCS3 QZeR.EBjbB6p6q_7dQHvVxlNZulMcBxVYAAlCYMNsTXW0NoI4MSobXk0cBFLQdLVFjFj5omygw.P VXubNv7gXd6h89aKro34_miJaBqP.R27IFsyfi.OS4iu5sQWMJpPpDoEcM4myiueEkrbH6oMBIkG 0ezBUbV9AFV6UOi3YJGHebtcSbQsN_P8b1Tn7APr6wSveVKsKLcoqnmA2YyVpG3CusMS0TZPE_4J mIbupF8W4cm97b5Z1vVUrkJ.uiAKrVcfGOd4oYSdghKM1oVYPsWe5.scEbHX.wHnwt2P6ZVkg8Ix iRJGKSU51GqIBTZAiIWj3V8sUzecqPZAEtusTHlHoCwM87jS2BQb7cet03bP5GeAhdqeP.amD8ih MnMZApqzKngK3JXKkSXDdCOIjgRiI4jCff3G3X0EtU1GAewmeCkgo5jyJeT7I_tIPNmDXv16fN6B sNbGEppApl0eJCIUT3q0b5Oe25InsXAnxsAzYvcg7eMUWklpkUFCQAimiqJ90LMkpGY99LJSqQ38 inmkB0FG5EBNf.wNCBN.ReK.yXUbsvaRfg1XJd0WxFWRNgbte X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.gq1.yahoo.com with HTTP; Mon, 18 Jul 2022 11:31:41 +0000 Received: by hermes--production-ne1-7864dcfd54-gln7g (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 6f21bd833f494b9154abcf7d0f4e6dd9; Mon, 18 Jul 2022 11:31:39 +0000 (UTC) Message-ID: <8eb62e12-17cf-cce6-666a-8ebb7915f461@netscape.net> Date: Mon, 18 Jul 2022 07:31:36 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2] Subject: x86/PAT: Report PAT on CPUs that support PAT without MTRR Content-Language: en-US To: Jan Beulich , Borislav Petkov Cc: Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , Dan Williams , "Kirill A. Shutemov" , Tom Lendacky , Jane Chu , Tianyu Lan , Randy Dunlap , Sean Christopherson , Juergen Gross , xen-devel@lists.xenproject.org, stable@vger.kernel.org, Thorsten Leemhuis , linux-kernel@vger.kernel.org References: <9d5070ae4f3e956a95d3f50e24f1a93488b9ff52.1657671676.git.brchuckz.ref@aol.com> <9d5070ae4f3e956a95d3f50e24f1a93488b9ff52.1657671676.git.brchuckz@aol.com> <5ea45b0d-32b5-1a13-de86-9988144c0dbe@leemhuis.info> <56a6ab5f-06fb-fa11-5966-cb23cb276fa6@netscape.net> <1309c3f5-86c7-e4f8-9f35-e0d430951d49@netscape.net> <764ea65f-269a-6f32-c780-cbdd7cf09120@suse.com> From: Chuck Zmudzinski In-Reply-To: <764ea65f-269a-6f32-c780-cbdd7cf09120@suse.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailer: WebService/1.1.20407 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=no 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 On 7/18/2022 2:07 AM, Jan Beulich wrote: > On 15.07.2022 21:53, Chuck Zmudzinski wrote: > > Two things I see here in my efforts to get a patch to fix this regression: > > > > 1. Does Xen have plans to give Linux running in Dom0 write-access to the > > PAT MSR? > > No, as this is not technically feasible (all physical CPUs should run > with the same value in the MSR, or else other issues arise). > > > 2. Does Xen have plans to expose MTRRs to Linux running in Dom0? > > Yen does expose MTRRs to PV Dom0, but via a hypercall mechanism. I > don't think there are plans on the Xen side to support the MSR > interface (and hence to expose the CPUID bit), and iirc there are > no plans on the Linux side to use the MTRR interface. This also > wouldn't really make sense anymore now that it has become quite > clear that Linux wants to have PAT working without depending on > MTRR. I am not so sure about that, given what Borislav Petkov said when commenting on your patch here: https://lore.kernel.org/lkml/YsRjX%2FU1XN8rq+8u@zn.tnic/ Specifically, Borislav Petkov wrote on Tue, 5 Jul 2022 18:14:23 +0200: Actually, the current goal is to adjust Xen dom0 because: 1. it uses the PAT code 2. but then it does something special and hides the MTRRs which is not something real hardware does. So this one-off thing should be prominent, visible and not get in the way. --------------end of Borislav Petkov quote----------- Jan, can you explain this comment by Borislav Petkov about Xen being a "one-off thing" that hides MTRRs and needs to be "adjusted" so it does "not get in the way"? Borislav, are you willing to retract the comments you made on Tue, 5 Jul 2022 18:14:23 +0200 about Xen? > > Jan Jan, thanks for answering my questions. Chuck