Re: [Xen-devel] [PATCH v2] xen/arm: correctly handle DMA mapping of compound pages

2016-02-08 Thread Stefano Stabellini
On Mon, 8 Feb 2016, Ian Campbell wrote: > Currently xen_dma_map_page concludes that DMA to anything other than > the head page of a compound page must be foreign, since the PFN of the > page is that of the head. > > Fix the check to instead consider the whole of a compound page to be > local if th

[Xen-devel] [PATCH v2] xen/arm: correctly handle DMA mapping of compound pages

2016-02-08 Thread Ian Campbell
Currently xen_dma_map_page concludes that DMA to anything other than the head page of a compound page must be foreign, since the PFN of the page is that of the head. Fix the check to instead consider the whole of a compound page to be local if the PFN of the head passes the 1:1 check. We can neve