From: Alan Cox Subject: Re: Re: [PATCH 06/16] xen: disable PAT Date: Sun, 10 May 2009 14:29:28 +0100 Message-ID: <20090510142928.66bb57bb@lxorguk.ukuu.org.uk> References: <4A05CD29.6050505@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Jeremy Fitzhardinge , Jeremy Fitzhardinge , Suresh Siddha , "Pallipadi, Venkatesh" , arch/x86 maintainers , Kernel Mailing List , Ian Campbell , Xen-devel , Thomas Gleixner , Molnar , "H. Peter Anvin" , Ingo, the, Lu , "Linux@zytor.com" , Arjan van de Ven List-Id: xen-devel@lists.xenproject.org > > There exists at least one processor erratum where the CPU will use > > PAT[4-7] when the user requested PAT[0-3]. For those CPUs, it is unsafe > > for *any* OS to have PAT[4-7] != PAT[0-3]. > > Would it be unreasonable for us to disable PAT on such processors? That would be a regression as far as Linux is concerned. They work perfectly well providing you stick to four PAT entries (which is enough for any Linux system). I'm not sure how Windows handles this but that might also matter for Xen I guess. > have matching PAT configuration. No elfnote would mean use Xen's existing > PAT setup (or if that's very dangerous then disable PAT altogether, perhaps > dependent on CPU model/stepping?). Hiding it on errata hit processors if the guest cannot support PAT safely on such processors sounds a good policy and its one being a hypervisor you can do neatly. There are quite a few different CPUs with PAT errata. I've no idea why there are so many errata about that specific bit. Alan