From: Ian Campbell Subject: Re: [PATCH RFC 3/9] xen: arm: handle concatenated root tables in dump_pt_walk Date: Thu, 4 Sep 2014 15:40:22 +0100 Message-ID: <1409841622.10156.19.camel@kazak.uk.xensource.com> References: <3ef2b68c511f3e31de409b76757b95c78b99d750.1406728037.git.ian.campbell@citrix.com> <53D92423.3000509@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53D92423.3000509@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, vijay.kilari@gmail.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-07-30 at 17:58 +0100, Julien Grall wrote: > > - first = __map_domain_page(p2m->root); > > - dump_pt_walk(first, addr, P2M_ROOT_LEVEL); > > - unmap_domain_page(first); > > + dump_pt_walk(page_to_maddr(p2m->root), addr, > > You can directly use p2m->vttbr and avoid to call page_to_maddr. Not quite since vttbr contains the vmid encoding. page_to_maddr is cheap enough for a debug path I think. Ian.