swiotlb-xen: use xen_dma_map/unmap_page, xen_dma_sync_single_for_cpu/device
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 25 Oct 2013 10:33:25 +0000 (10:33 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 25 Oct 2013 10:33:25 +0000 (10:33 +0000)
commit6cf054636261ca5c88f3c2984058d51f927b8a2e
tree7d3bad304a71b6d0c855d8caf3adb3d6bc03a6d6
parent7100b077ab4ff5fb0ba7760ce54465f623a0a763
swiotlb-xen: use xen_dma_map/unmap_page, xen_dma_sync_single_for_cpu/device

Call xen_dma_map_page, xen_dma_unmap_page, xen_dma_sync_single_for_cpu,
xen_dma_sync_single_for_device from swiotlb-xen to ensure cpu/device
coherency of the pages used for DMA, including the ones belonging to the
swiotlb buffer.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
drivers/xen/swiotlb-xen.c