• Jason Wang's avatar
    virtio_ring: per virtqueue dma device · 2713ea3c
    Jason Wang authored
    This patch introduces a per virtqueue dma device. This will be used
    for virtio devices whose virtqueue are backed by different underlayer
    devices.
    
    One example is the vDPA that where the control virtqueue could be
    implemented through software mediation.
    
    Some of the work are actually done before since the helper like
    vring_dma_device(). This work left are:
    
    - Let vring_dma_device() return the per virtqueue dma device instead
      of the vdev's parent.
    - Allow passing a dma_device when creating the virtqueue through a new
      helper, old vring creation helper will keep using vdev's parent.
    Reviewed-by: default avatarEli Cohen <elic@nvidia.com>
    Tested-by: default avatarEli Cohen <elic@nvidia.com>
    Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
    Message-Id: <20230119061525.75068-2-jasowang@redhat.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    2713ea3c
virtio_ring.h 3.14 KB