]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
virtio_ring: switch to use dma_{map|unmap}_page()
authorJason Wang <jasowang@redhat.com>
Thu, 21 Aug 2025 06:46:34 +0000 (14:46 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 1 Oct 2025 11:24:43 +0000 (07:24 -0400)
commit447beec8065b7505c09d1c16257ff9057ec29672
tree2bb2fb272a75fc3348edc9563d77a9550a851fe3
parent7d096cb3e16f09d9762ae8cef897cdbc13a40029
virtio_ring: switch to use dma_{map|unmap}_page()

This patch switches to use dma_{map|unmap}_page() to reduce the
coverage of DMA operations. This would help for the following rework
on the virtio map operations.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20250821064641.5025-3-jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Reviewed-by: Eugenio Pérez <eperezma@redhat.com>
drivers/virtio/virtio_ring.c