OpenCloudOS-Kernel/arch/arm/include/asm/xen
Stefano Stabellini a4dba13089 xen/arm/arm64: introduce xen_arch_need_swiotlb
Introduce an arch specific function to find out whether a particular dma
mapping operation needs to bounce on the swiotlb buffer.

On ARM and ARM64, if the page involved is a foreign page and the device
is not coherent, we need to bounce because at unmap time we cannot
execute any required cache maintenance operations (we don't know how to
find the pfn from the mfn).

No change of behaviour for x86.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2014-12-04 12:41:54 +00:00
..
events.h xen: arm: mandate EABI and use generic atomic operations. 2013-03-11 13:52:19 -04:00
hypercall.h arm,arm64/xen: introduce HYPERVISOR_suspend() 2014-05-12 17:20:24 +01:00
hypervisor.h xen/arm,arm64: enable SWIOTLB_XEN 2013-10-10 13:40:44 +00:00
interface.h arm: xen: implement multicall hypercall support. 2014-04-24 13:09:46 +01:00
page-coherent.h xen/arm: use hypercall to flush caches in map_page 2014-12-04 12:41:52 +00:00
page.h xen/arm/arm64: introduce xen_arch_need_swiotlb 2014-12-04 12:41:54 +00:00