From: Ian Campbell Subject: Re: [PATCH v5 7/8] xen: arm: use superpages in p2m when pages are suitably aligned Date: Wed, 9 Jul 2014 18:11:13 +0100 Message-ID: <1404925873.26217.13.camel@hastur.hellion.org.uk> References: <1404907608.16789.18.camel@kazak.uk.xensource.com> <1404907666-8594-7-git-send-email-ian.campbell@citrix.com> <53BD6D94.7010108@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53BD6D94.7010108@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@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-07-09 at 17:28 +0100, Julien Grall wrote: > > + /* > > + * could flush up to the next boundary, but would need to be > > + * careful about preemption, so just do one page now and loop. > > At the first glance I though this code didn't handle correctly superpage > flush. It took me several minutes to understand that you rely > P2M_ONE_PROGRESS{,_NOP} to do the job for you. > > Can you explain this trick in the commit message? That's what the existing comment which you've quoted is attempting to explain. Is it not clear enough? Can you suggest an improvement? Would "up to the next superpage boundary ... do one 4K page now and loop" suffice? > With this changes: > > Acked-by: Julien Grall > > Regards, >