Re: [Xen-devel] [PATCH v2 1/2] swiotlb-xen: implement xen_swiotlb_dma_mmap callback

2017-01-18 Thread Stefano Stabellini
On Wed, 18 Jan 2017, Andrii Anisov wrote: > Dear Stefano, > > > > Only one suggestion more. For this to work correctly, we are assuming > > that no foreging pages are involved here, which is a very reasonable > > assumption given that mmap should be called on memory returned by > > dma_alloc_cohe

Re: [Xen-devel] [PATCH v2 1/2] swiotlb-xen: implement xen_swiotlb_dma_mmap callback

2017-01-18 Thread Andrii Anisov
Dear Stefano, > Only one suggestion more. For this to work correctly, we are assuming > that no foreging pages are involved here, which is a very reasonable > assumption given that mmap should be called on memory returned by > dma_alloc_coherent. I also kept in mind this problem, that's why the

Re: [Xen-devel] [PATCH v2 1/2] swiotlb-xen: implement xen_swiotlb_dma_mmap callback

2017-01-16 Thread Stefano Stabellini
On Mon, 16 Jan 2017, Stefano Stabellini wrote: > On Mon, 16 Jan 2017, Andrii Anisov wrote: > > From: Stefano Stabellini > > > > This function creates userspace mapping for the DMA-coherent memory. > > > > Signed-off-by: Stefano Stabellini > > Signed-off-by: Oleksandr Dmytryshyn > > Signed-off-

Re: [Xen-devel] [PATCH v2 1/2] swiotlb-xen: implement xen_swiotlb_dma_mmap callback

2017-01-16 Thread Stefano Stabellini
On Mon, 16 Jan 2017, Andrii Anisov wrote: > From: Stefano Stabellini > > This function creates userspace mapping for the DMA-coherent memory. > > Signed-off-by: Stefano Stabellini > Signed-off-by: Oleksandr Dmytryshyn > Signed-off-by: Andrii Anisov > --- > arch/arm/xen/mm.c | 14

[Xen-devel] [PATCH v2 1/2] swiotlb-xen: implement xen_swiotlb_dma_mmap callback

2017-01-16 Thread Andrii Anisov
From: Stefano Stabellini This function creates userspace mapping for the DMA-coherent memory. Signed-off-by: Stefano Stabellini Signed-off-by: Oleksandr Dmytryshyn Signed-off-by: Andrii Anisov --- arch/arm/xen/mm.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/

[Xen-devel] [PATCH v2 1/2] swiotlb-xen: implement xen_swiotlb_dma_mmap callback

2017-01-16 Thread Andrii Anisov
From: Stefano Stabellini This function creates userspace mapping for the DMA-coherent memory. Signed-off-by: Stefano Stabellini Signed-off-by: Oleksandr Dmytryshyn Signed-off-by: Andrii Anisov --- arch/arm/xen/mm.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/