|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v02 2/7] arm: omap: introduce iommu translation for IPU remoteproc
Hi Andrii, On 26/06/14 12:07, Andrii Tseglytskyi wrote: Hmmm, what prevents the guest to pass an invalid IPA? On debug build you will hit the assert, but on non-debug build you will screw the IPU page table. [..] [..] + /* first level pointers have different formats, depending on their type */ + if ( ipu_pgd_is_super(pgd) ) + pd_mask = MMU_SECTION_MASK(MMU_OMAP_SUPER_SHIFT); + else if ( ipu_pgd_is_section(pgd) ) + pd_mask = MMU_SECTION_MASK(MMU_OMAP_SECTION_SHIFT); + else if ( ipu_pgd_is_table(pgd) ) + pd_mask = MMU_SECTION_MASK(MMU_OMAP_SECOND_LEVEL_SHIFT); + + pd_paddr = pgd & pd_mask; + pd_flags = pgd & ~pd_mask; + pd_maddr = p2m_lookup(current->domain, pd_paddr, NULL); + ASSERT(pd_maddr != INVALID_PADDR); Same remark here. -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |