From: Ian Campbell Subject: Re: [PATCH 5/6] xen: arm: add some helpers for assessing p2m pte Date: Tue, 10 Jun 2014 16:19:28 +0100 Message-ID: <1402413568.7541.7.camel@kazak.uk.xensource.com> References: <1402394127.29980.52.camel@kazak.uk.xensource.com> <1402394278-9850-5-git-send-email-ian.campbell@citrix.com> <5396EE10.8060804@linaro.org> <1402400806.1250.63.camel@kazak.uk.xensource.com> <5396F202.4070200@linaro.org> <1402403381.1250.92.camel@kazak.uk.xensource.com> <5396FF87.4030204@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5396FF87.4030204@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 Tue, 2014-06-10 at 13:52 +0100, Julien Grall wrote: > >>>> Indeed, the can only get the address if the pte is pointed to a memory > >>>> block. > >>> > >>> Yes, but an L3 PTE has the table bit set, which would make > >>> p2m_entry(pte) false... > >> > >> Hmmm... right. But this bit (ie table bit) doesn't have the same meaning > >> on L3. Your comment on p2m_table is confusing. > > > > You mean: /* Remember: L3 entries set the table bit! */ ? > > > > That was intended to be a comment on the two helpers which follow. Do > > you have an idea how I could make it clearer? Perhaps appending "So > > these two functions will return the opposite to what you expect for L3 > > ptes"? > > I was thinking something like "These two functions are only valid for L1 > and L2 ptes". I think I'll do some combination of both. Ian.