]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
virtio: introduce virtio_map container union
authorJason Wang <jasowang@redhat.com>
Thu, 21 Aug 2025 06:46:36 +0000 (14:46 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 1 Oct 2025 11:24:43 +0000 (07:24 -0400)
commitb16060c5c7d56455da3c3c50b4a20a83c2a30810
tree26ccf12be6288a3df6925c0109f5387efb99a7eb
parentb41cb3bcf67fcb7b8297e5acc5bb3309c96c2ff2
virtio: introduce virtio_map container union

Following patch will introduce the mapping operations for virtio
device. In order to achieve this, besides the dma device, virtio core
needs to support a transport or device specific mapping metadata as well.
So this patch introduces a union container of a dma device. The idea
is the allow the transport layer to pass device specific mapping
metadata which will be used as a parameter for the virtio mapping
operations. For the transport or device that is using DMA, dma device
is still being used.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20250821064641.5025-5-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
drivers/virtio/virtio_vdpa.c
include/linux/virtio.h
include/linux/virtio_ring.h