From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754235AbZEISl2 (ORCPT ); Sat, 9 May 2009 14:41:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751974AbZEISlT (ORCPT ); Sat, 9 May 2009 14:41:19 -0400 Received: from terminus.zytor.com ([198.137.202.10]:45536 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751197AbZEISlT (ORCPT ); Sat, 9 May 2009 14:41:19 -0400 Message-ID: <4A05CD29.6050505@zytor.com> Date: Sat, 09 May 2009 11:36:25 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Keir Fraser CC: Alan Cox , Ian Campbell , Jeremy Fitzhardinge , the arch/x86 maintainers , Suresh Siddha , Linux@zytor.com, "Pallipadi, Venkatesh" , Kernel Mailing List , Jeremy Fitzhardinge , Xen-devel , Jan Beulich , Ingo Molnar , Lu , Thomas Gleixner , Arjan van de Ven Subject: Re: [Xen-devel] Re: [PATCH 06/16] xen: disable PAT References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Keir Fraser wrote: > > My suggestion is that Xen changes its PAT[1] from WT to WC. AFAIK only > suse's Linux port is currently using Xen's PAT support, and it does not > actually use the WT cache attribute. Then Xen's PAT[0-3] would match what > Linux expects, and Linux apparently does not risk using PAT[4-7] because of > processor errata so their values are irrelevant. Linux can check that it is > running on Xen with suitable PAT setup by reading MSR_IA32_CR_PAT and > checking PAT[0-3], and only enable PAT usage in case of a match. > 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]. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.