dma-remap: align the size in dma_common_*_remap()
authorEric Auger <eric.auger@redhat.com>
Tue, 23 Jun 2020 12:07:55 +0000 (14:07 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 23 Jun 2020 12:14:41 +0000 (14:14 +0200)
commit8e36baf97b252cdcafa53589e8227cbb1e85f0b0
tree01f841655986c81328cd65e4a66b75c7ba0e1acb
parentd07ae4c486908615ab336b987c7c367d132fd844
dma-remap: align the size in dma_common_*_remap()

Running a guest with a virtio-iommu protecting virtio devices
is broken since commit 515e5b6d90d4 ("dma-mapping: use vmap insted
of reimplementing it"). Before the conversion, the size was
page aligned in __get_vm_area_node(). Doing so fixes the
regression.

Fixes: 515e5b6d90d4 ("dma-mapping: use vmap insted of reimplementing it")
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/remap.c