Skip to content

Virtio: fix some vq allocation issues

Wei Wang kvm lkml virtio-dev virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2virtio_pci: use queue idx instead of array idx to set up the vqdrivers/virtio/virtio_pci_common.c+4 -43 replies
1/2virtio_pci: use queue idx instead of array idx to set up the vqdrivers/virtio/virtio_pci_common.c+4 -40 replies
2/2virtio: don't allocate vqs when names[i] = NULLdrivers/misc/mic/vop/vop_main.c drivers/remoteproc/remoteproc_virtio.c drivers/s390/virtio/virtio_ccw.c +1 more+30 -94 replies
2/2virtio: don't allocate vqs when names[i] = NULLdrivers/misc/mic/vop/vop_main.c drivers/remoteproc/remoteproc_virtio.c drivers/s390/virtio/virtio_ccw.c +1 more+30 -90 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchCornelia Huck
1/2R-b
1/2R-b
2/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/2] Virtio: fix some vq allocation issues

Some vqs don't need to be allocated when the related feature bits are disabled. Callers notice the vq allocation layer by setting the related names[i] to be NULL.

This patch series fixes the find_vqs implementations to handle this case.

Wei Wang (2):
virtio_pci: use queue idx instead of array idx to set up the vq
virtio: don't allocate vqs when names[i] = NULL

 drivers/misc/mic/vop/vop_main.c        |  9 +++++++--
 drivers/remoteproc/remoteproc_virtio.c |  9 +++++++--
 drivers/s390/virtio/virtio_ccw.c       | 12 +++++++++---
 drivers/virtio/virtio_mmio.c           |  9 +++++++--
 drivers/virtio/virtio_pci_common.c     |  8 ++++----
 5 files changed, 34 insertions(+), 13 deletions(-)
Signature · 1 line
2.7.4