From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v3 7/8] xen: arm: use superpages in p2m when pages are suitably aligned Date: Thu, 26 Jun 2014 16:16:52 +0100 Message-ID: <53AC3964.7060307@linaro.org> References: <1403777793.16595.21.camel@kazak.uk.xensource.com> <1403777837-16779-7-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1403777837-16779-7-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , xen-devel@lists.xen.org Cc: tim@xen.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Hi Ian, On 06/26/2014 11:17 AM, Ian Campbell wrote: > +static int p2m_create_table(struct domain *d, lpae_t *entry, > + int level_shift, bool_t flush_cache) > { > struct p2m_domain *p2m = &d->arch.p2m; > struct page_info *page; > - void *p; > + lpae_t *p; > lpae_t pte; > + int splitting = entry->p2m.valid; NIT: You've introduce p2m_valid earlier... I think you can use it there. > + BUG_ON(entry->p2m.table); Should not you check the valid bit by using p2m_table? Regards, -- Julien Grall