From: Keir Fraser Subject: Re: Re: [PATCH 06/16] xen: disable PAT Date: Mon, 11 May 2009 10:48:15 +0100 Message-ID: References: <4A080762.76EA.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4A080762.76EA.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: Ian Campbell , Jeremy Fitzhardinge , Xen-devel List-Id: xen-devel@lists.xenproject.org On 11/05/2009 10:09, "Jan Beulich" wrote: > Depending on what exact plans you have here, I would question whether > having an upper layer dictate mechanisms used by a lower layer. In > particular, just like with the same mistake made with kexec, > - Linux's use of PAT may change (specifically, the value it writes to the PAT > MSR may not be statically determinable at some point, making the ELF note > approach you indicated as a possible solution unusable) > - the interface may not be suitable for non-Linux > Hence I'd appreciate if working out the details here could be done in public. I was going to suggest put the PAT MSR value in an elfnote, Xen picks up dom0's note and uses it if possible (Xen relies on PAT[0]=WB,PAT[2]=UC), else disables PAT for all guest, also advertises PAT feature for any domU PV guest advertising the exact same PAT MSR value in its elfnote. Any approach involving Xen dictating to Linux has the fun job of getting past the kernel maintainers. -- Keir