[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 6/8] xen: arm: add some helpers for assessing p2m pte
On 06/26/2014 11:17 AM, Ian Campbell wrote: > diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c > index 8a6d295..b51dc1b 100644 > --- a/xen/arch/arm/p2m.c > +++ b/xen/arch/arm/p2m.c > @@ -14,6 +14,22 @@ > #define P2M_FIRST_ORDER 1 > #define P2M_FIRST_ENTRIES (LPAE_ENTRIES<<P2M_FIRST_ORDER) > > +static bool_t p2m_valid(lpae_t pte) { NIT: The { has to be on another line. > + return pte.p2m.valid; > +} > +/* These two can only be used on L0..L2 ptes because L3 mappings set > + * the table bit and therefore these would return the opposite to what > + * you would expect. */ > +static bool_t p2m_table(lpae_t pte) > +{ > + return p2m_valid(pte) && pte.p2m.table; > +} > +#if 0 > +static bool_t p2m_mapping(lpae_t pte) { Same here. > + return p2m_valid(pte) && !pte.p2m.table; > +} > +#endif > + With these small changes: Acked-by: Julien Grall <julien.grall@xxxxxxxxxx> -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |