From: "Jan Beulich" Subject: Re: [RFC] x86: cacheability page attributes Date: Wed, 04 Apr 2007 08:38:33 +0100 Message-ID: <46137219.76E4.0078.0@novell.com> References: <46127A18.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline 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: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 04.04.07 09:16 >>> >On 3/4/07 15:00, "Jan Beulich" wrote: > >> Attached draft patch is supposed to help dealing with tracking cacheability >> attributes on x86, specifically to prevent page aliases using different >> cacheability attributes. > >How important is this to get right? The Intel manual warns a bit vaguely >about it, but I get the impression that nothing actually breaks in terms of >cache coherency if a page is mapped with more than one PAT attribute (very >much unlike the situation if CPUs have differing MTRR attributes!). The >manual explains that even if a UC attribute is chosen, for example, the >processor's cache will continue to snoop for accesses/updates of that line. Since use of _PAGE_PCD alone (which is what PAGE_KERNEL_NOCACHE maps to) translates to UC-, this is important, as with the MTRRs for such a region being set to WC the effective memory type is WC, and a WC/WB conflict is what the Intel manual specifically mentions must be avoided. Jan