[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v5 05/10] xen/arm: p2m: Extend p2m_lookup parameters to retrieve the p2m type
On Mon, 2013-12-16 at 17:37 +0000, Julien Grall wrote: > @@ -102,7 +108,10 @@ paddr_t p2m_lookup(struct domain *d, paddr_t paddr) > > done: > if ( pte.p2m.valid ) > + { > maddr = (pte.bits & PADDR_MASK & PAGE_MASK) | (paddr & ~PAGE_MASK); > + *t = pte.p2m.type; This needs to either ASSERT(pte.p2m.type != p2m_invalid) or to explicitly return INVALID_PADDR if it finds p2m_invalid. (which one depends on whether p2m_invalid would be a coding bug here or not) Ian. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |