Skip to content

RFC virtio: allow per vq DMA domain

Jason Wang lkml virtualization 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2virtio: accept parent as a parameter when allocating virtqueuedrivers/virtio/virtio_ring.c+13 -90 replies
1/2virtio: accept parent as a parameter when allocating virtqueuedrivers/virtio/virtio_ring.c+13 -90 replies
2/2virtio: allow query vq parent devicedrivers/virtio/virtio_ring.c include/linux/virtio_config.h+16 -20 replies
2/2virtio: allow query vq parent devicedrivers/virtio/virtio_ring.c include/linux/virtio_config.h+16 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] virtio: allow per vq DMA domain

We used to have use a single parent for all DMA operations. This tends to complicate the mdev based hardware virtio datapath offloading which may not implement the control path over datapath like ctrl vq in the case of virtio-net.

So this series tries to intorduce per DMA domain by allowing trasnport to specify the parent device for each virtqueue. Then for the case of virtio-mdev device, it can hook the DMA ops for control vq back to itself and then using e.g VA or PA to emulate the control virtqueue operation.

Vhost-mdev may use similar idea. Note, compiling test only.

Jason Wang (2):
virtio: accept parent as a parameter when allocating virtqueue
virtio: allow query vq parent device

 drivers/virtio/virtio_ring.c  | 36 +++++++++++++++++++++++++----------
 include/linux/virtio_config.h |  2 ++
 2 files changed, 28 insertions(+), 10 deletions(-)
Signature · 1 line
2.19.1