From: Stefano Stabellini Date: Fri, 21 Nov 2014 11:05:39 +0000 (+0000) Subject: xen/arm: use hypercall to flush caches in map_page X-Git-Tag: omap-for-v3.20/drop-legacy-3517~118^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3567258d281b5b515d5165ed23851d9f84087e7d;p=pandora-kernel.git xen/arm: use hypercall to flush caches in map_page In xen_dma_map_page, if the page is a local page, call the native map_page dma_ops. If the page is foreign, call __xen_dma_map_page that issues any required cache maintenane operations via hypercall. The reason for doing this is that the native dma_ops map_page could allocate buffers than need to be freed. If the page is foreign we don't call the native unmap_page dma_ops function, resulting in a memory leak. Suggested-by: Catalin Marinas Signed-off-by: Stefano Stabellini Reviewed-by: Catalin Marinas --- Reading git-diff-tree failed