From: Ian Campbell Subject: Re: [PATCH V3 11/41] xen/arm: Introduce ioremap_attr Date: Fri, 10 May 2013 10:17:01 +0100 Message-ID: <1368177421.27857.30.camel@zakaz.uk.xensource.com> References: <1368152307-598-1-git-send-email-julien.grall@linaro.org> <1368152307-598-12-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1368152307-598-12-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Stefano Stabellini , "patches@linaro.org" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org > @@ -59,6 +59,8 @@ > #define DEV_CACHED WRITEBACK > > #define PAGE_HYPERVISOR (MATTR_MEM) I should have noticed this when Stefano's original vmap patch went in but this is wrong. MATTR_* are Second stage paging attributes (i.e. p2m ones) and are not suitable for the Xen first stage page tables. MATTR_MEM == 0xf, which I think will be truncated to 0x7 when written to the ai field in the PT (which is only 3 bits) and so this is equivalent to using WRITEALLOC. I suspect that isn't at all desirable... Stefano, can you fix this please? Ian.