Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3242015imw; Mon, 18 Jul 2022 04:51:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tC3IEfpV30MWikasOsYfWR2bv/Qe2zjinosl7M/Z+sIdbaxpnSkQQID1LsfexLXnFz5o6X X-Received: by 2002:a17:906:dc8d:b0:72f:2993:ed84 with SMTP id cs13-20020a170906dc8d00b0072f2993ed84mr5092812ejc.251.1658145102605; Mon, 18 Jul 2022 04:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658145102; cv=none; d=google.com; s=arc-20160816; b=S4z1wnzOKnazVpnAWFf494yy2J1Etj1L2QrbZ+brmXFYlOwUkCoOLcf5UJrekKkWBx Ux6I3VHPACbO8oWKjJD+WHDEvfgh5qN6j5brDEWLpMil6sQnnt6NfH7G5NgcZu0VR9IP FyFc5/H49yiqNLPeGdYRqxLrZwN83ZMlWVZewTsjGOM1efoQE5Lw31sxfhicnhDAYWbW RRvgB197Y92Z+oL/+Aq5eRPxG9n39uSlSI+fjmzqTyCn2qHyegdMd3DRMguHz9i4cmtO OPuYR/VxjMDmaBqYSwnJ4k67w1vpyfW03dgG8P14PgzrtjcuNUh/TBbvGyD/j0B9Mj9j F/SQ== 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=NWRgcEKrNw577wp1orU79uRjM2h9UzwL3V9kfvs9pNE=; b=wx9/o87SFddW9nnw9c3FaQ0jd3SZhCqiSpZKI2fqMaNVmAE4y9UZxrumKgWNrZ4PZ+ uvFlZx/o5hgUGsX4q6J5qJk6dqCjUS+J5zK1C2prVPK9EYxR5+SW9G51SaGJJV/KgvgF SyQVUxhRwq9mJkqFpm3Z24kofUxa24BrXtzB6Av8k1Q/HHwMots+i9v1nTf/5kCAG4MA d18LmbSlg2+ZTKRnG0k0SUNNYk7dRqkna5PBQRVuIA6h2bxjMBXipWY6/5XCML1HtZM+ 6UBl+fqHWSMr36icR1Fykb06CNZLG5dH9YR4L863x/VF/DRne9y6mp6MNruqSSDCdZ3b awCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netscape.net header.s=a2048 header.b=EhGzrRlE; 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 m2-20020a1709060d8200b00707cb6a6c1fsi14147697eji.162.2022.07.18.04.51.16; Mon, 18 Jul 2022 04:51:42 -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=EhGzrRlE; 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 S233932AbiGRLpn (ORCPT + 99 others); Mon, 18 Jul 2022 07:45:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233484AbiGRLpl (ORCPT ); Mon, 18 Jul 2022 07:45:41 -0400 Received: from sonic307-54.consmr.mail.gq1.yahoo.com (sonic307-54.consmr.mail.gq1.yahoo.com [98.137.64.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D50121253 for ; Mon, 18 Jul 2022 04:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netscape.net; s=a2048; t=1658144740; bh=NWRgcEKrNw577wp1orU79uRjM2h9UzwL3V9kfvs9pNE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From:Subject:Reply-To; b=EhGzrRlE2Yw6LdFc3Y+vidj+yJ2vCwGFx1ZHOm3AbbCcDlkuoG734dvW1txtuPbXv4DulsxiPGVoRfbEPzlQFQa5IfjOK0zn+BI1twC+Mx0EVro8HSj8WXDTV3f8bUGQgwC8khps3HWF//mpmpvAXkOd6AyG5+1HMmytla63CB6gEAXiV2Hnh86h7Q9xyq/PzEdbsRotwprDkkpl/FSSRFUq0jCwNl5Dmdecxpt2U3V1VjZtE6Pqw8J89lWJxugs5SAx3P8NR2nH/cFLiYlNaS1pYq2aAzcBD3lJ1Wkxw55o431cXiDg09+fkGH80QlcMLhM8khoyrmp69+DhTevjw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1658144740; bh=iZRE/1npaL44ct0XXAVcZyB1CdaMX8boH9OgF3My7os=; h=X-Sonic-MF:Date:Subject:To:From:From:Subject; b=RDIECIGAhEUsPY/cK49+TNUvAV1csZfs8R8DrpMWt/LL2N4ZZB4HQsU4yz530FfB1T/eH84Y3ms8RYdbn9nQJETKrScSo3NWriYgy44k1K2ubRQv2ZztmH7kRLhObSC9Y95FYz/tT+G4QFwJ2ewhfn4nPcpYDvQQgO+xErpP2GQb3scz1JlPxi7cItppew6BmLZgobneD4lm4mgwy8RO9abVnuw2nFRKzghW6UiZ+ysZu/PUVqJ+znfNKBAVElgP8KC41tBhfsYf1g+pHdRROV2L2WdSwedAPrdn/f5OnHcLLxCwuO71DUeu59oUgs0XbaG24uQekYOOXi3OSym/lw== X-YMail-OSG: M_JV9I8VM1mdZtbNGADi0RpaKMu5RY7DA_NHBnxKEFfMovnu_mRoNGuS8STeFaw Jy2rTJ42K_wtX1yAJ8OxMukHqdOba6hImm4eWMnDxp5ru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PDyxEkxA2epkko3G JoI.ae6inUsx4MLEDZYkThqqG8epqy4GZKPqN.HN4L2H.5S8YXU1zvWGxHvrRS1l4vwNAXbBm X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Mon, 18 Jul 2022 11:45:40 +0000 Received: by hermes--production-ne1-7864dcfd54-hwfdm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 383384c8c23b00dfb91d48a20405cd82; Mon, 18 Jul 2022 11:45:37 +0000 (UTC) Message-ID: Date: Mon, 18 Jul 2022 07:45:34 -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 Cc: Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , "Kirill A. Shutemov" , Juergen Gross , xen-devel@lists.xenproject.org, Thorsten Leemhuis , linux-kernel@vger.kernel.org, Borislav Petkov 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> <8eb62e12-17cf-cce6-666a-8ebb7915f461@netscape.net> <80b413d1-287a-61a3-656d-9ea680f00a90@suse.com> From: Chuck Zmudzinski In-Reply-To: <80b413d1-287a-61a3-656d-9ea680f00a90@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 7:39 AM, Jan Beulich wrote: > On 18.07.2022 13:31, Chuck Zmudzinski wrote: > > 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----------- > > And then, a day later, he said > > "So I'm being told that it would be generally beneficial for all kinds of > virtualization solutions to be able to support PAT only, without MTRRs > so it would be interesting to see how ugly it would become to decouple > PAT from MTRRs in Linux..." > > > 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"? > > I'm afraid this isn't the first time that you ask people to explain > what somebody else said. I don't follow why you think I could better > explain what Boris said and why than he could do himself. That is why I also asked Boris to say something now to clarify his opinion on these matters. Let's wait and see if Boris says something to clarify his opinion. Chuck > > Jan