linux/arch/arm/xen
Stefano Stabellini 3567258d28 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 <catalin.marinas@arm.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
2014-12-04 12:41:52 +00:00
..
Makefile xen/arm: reimplement xen_dma_unmap_page & friends 2014-09-11 18:11:53 +00:00
enlighten.c xen/arm: remove handling of XENFEAT_grant_map_identity 2014-12-04 12:41:45 +00:00
grant-table.c arm/xen: remove duplicate arch_gnttab_init() function 2014-08-11 11:59:14 +01:00
hypercall.S ARM: convert all "mov.* pc, reg" to "bx reg" for ARMv6+ 2014-07-18 12:29:04 +01:00
mm.c swiotlb-xen: use xen_alloc/free_coherent_pages 2013-10-10 13:41:10 +00:00
mm32.c xen/arm: use hypercall to flush caches in map_page 2014-12-04 12:41:52 +00:00
p2m.c xen/arm: remove mach_to_phys rbtree 2014-09-11 18:11:53 +00:00