From: Ian Campbell Subject: Re: [PATCH 4/4] arm: allocate per-PCPU domheap pagetable pages Date: Tue, 23 Apr 2013 11:14:05 +0100 Message-ID: <1366712045.20256.110.camel@zakaz.uk.xensource.com> References: <1366648964.20256.24.camel@zakaz.uk.xensource.com> <1366648985-26435-4-git-send-email-ian.campbell@citrix.com> <1366710503.20256.89.camel@zakaz.uk.xensource.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.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Julien Grall , Sengul Thomas , "Tim (Xen.org)" , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Tue, 2013-04-23 at 11:12 +0100, Stefano Stabellini wrote: > On Tue, 23 Apr 2013, Ian Campbell wrote: > > > > + { > > > > + pte = mfn_to_xen_entry(virt_to_mfn(domheap+i*LPAE_ENTRIES)); > > > > + pte.pt.table = 1; > > > > + write_pte(&first[first_table_offset(DOMHEAP_VIRT_START+i*FIRST_SIZE)], pte); > > > > > > Also shouldn't we add an ASSERT to check that DOMHEAP_VIRT_START is > > > properly aligned? > > > > It would be a BUILD_BUG_ON I think and this would be far from the first > > place where that would be a problem, are we terribly worried about > > people changing config.h in ways which would break this? They'd notice > > pretty quickly.. > > No, but fewer assumptions we make, less error prone is the code I've thrown a patch onto the end of the V2 series which we can see if we like... Ian.