xen/arm: introduce GNTTABOP_cache_flush
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 21 Nov 2014 11:08:39 +0000 (11:08 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 4 Dec 2014 12:41:54 +0000 (12:41 +0000)
commitda095a996090a412c3b6292c7a8680661dca157d
tree02247bce77b50867c227384ed023bab81ffe77c4
parenta4dba130891271084344c12537731542ec77cb85
xen/arm: introduce GNTTABOP_cache_flush

Introduce support for new hypercall GNTTABOP_cache_flush.
Use it to perform cache flashing on pages used for dma when necessary.

If GNTTABOP_cache_flush is supported by the hypervisor, we don't need to
bounce dma map operations that involve foreign grants and non-coherent
devices.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
arch/arm/xen/mm.c
include/xen/interface/grant_table.h