[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: x86/PV: (lack of) MTRR exposure


  • To: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 29 Apr 2022 11:50:39 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=q2uInj1+3QL4S8VeHriMl/dzGQBL/14Nyl7gywqKjc4=; b=Ii0X1dEbdDS5b2QCbQa5jQFJubg8BwceHt2aCnezwpcgAxHO5HEau1vyM0zu+dFPbXdGpW+/8PTjS5cP2SmxYNk48xCcJwNZ1jMhJ0LZIu7KEscC6+j6mWBZThpqoK3HI+hZYm2DF0Qp6tXJcMg6kCz+rsMqfY/7Db/0seduQoIRh0GXjFHxEpKpf8WEoGjl+dkXX4k4/Fat784yiFtuoviT4oKbV4Kg5X7w4WaWrGwfyGijDro7aUrVo/gHlXop2dBhpm6vBje/5qMNv/MAKUCWHUXqdxHEe1pyz8hZW+zVLJid+FznitYses37iNCaQN47bGmPmaWto5e9GFdXZA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OYJtM1Oene1LbHKoY4coXuK42anuu3a+dl29ZkfKTOB+c3IGWM51N1/1tAtAqzj41lWZTFQtx21VdSnCEKwCu0zEJStMErT/Ze0w6D7F6L+hKyV9L6j9lPGbqEPJjj+UZDhDRYMUBgVNrzP5Y7yuBrWeqKZ90kMncm2pmkfezFYC4tdSeJsisVLH45FAbr2IoVc4ibCF9PDLl+WcG5HDcxiZUEtTU1idNnzEEPphk98GUllq4fSPiNnC1roh6HFrjmCbum1J5mWGy/LolDc7a8C23rHh9tk6zOPKY1rGgEn2wffu/b6eQ7muNgQrdqK+areaQxpgZz5rujZ1fPvgSg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 29 Apr 2022 09:50:51 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 28.04.2022 23:30, Boris Ostrovsky wrote:
> 
> On 4/28/22 11:53 AM, Jan Beulich wrote:
>> Hello,
>>
>> in the course of analyzing the i915 driver causing boot to fail in
>> Linux 5.18 I found that Linux, for all the years, has been running
>> in PV mode as if PAT was (mostly) disabled. This is a result of
>> them tying PAT initialization to MTRR initialization, while we
>> offer PAT but not MTRR in CPUID output. This was different before
>> our moving to CPU featuresets, and as such one could view this
>> behavior as a regression from that change.
>>
>> The first question here is whether not exposing MTRR as a feature
>> was really intended, in particular also for PV Dom0. The XenoLinux
>> kernel and its forward ports did make use of XENPF_*_memtype to
>> deal with MTRRs. That's functionality which (maybe for a good
>> reason) never made it into the pvops kernel. Note that PVH Dom0
>> does have access to the original settings, as the host values are
>> used as initial state there.
> 
> 
> Initially MTRR was supposed to be supported but it was shot down by x86 
> maintainers who strongly suggested to use PAT.
> 
> 
> https://lists.xen.org/archives/html/xen-devel/2010-09/msg01634.html

I recall Ingo's dislike, yes. But them suggesting to use PAT when
PAT depends on MTRR internally is, well, odd. Plus there continues
to be the question why PVH Dom0 should see (and be able to play
with) MTRRs, when PV Dom0 can't even learn their values.

Jan




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.