public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Virtio: fix some vq allocation issues
@ 2018-12-28  2:26 Wei Wang
  2018-12-28  2:26 ` [PATCH v1 1/2] virtio_pci: use queue idx instead of array idx to set up the vq Wei Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Wei Wang @ 2018-12-28  2:26 UTC (permalink / raw)
  To: virtio-dev, linux-kernel, virtualization, kvm, mst, cohuck
  Cc: borntraeger, pbonzini, dgilbert, wei.w.wang

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(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2019-01-09 16:30 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-28  2:26 [PATCH v1 0/2] Virtio: fix some vq allocation issues Wei Wang
2018-12-28  2:26 ` [PATCH v1 1/2] virtio_pci: use queue idx instead of array idx to set up the vq Wei Wang
2019-01-03  9:57   ` Cornelia Huck
2019-01-09 16:29   ` Christian Borntraeger
2018-12-28  2:26 ` [PATCH v1 2/2] virtio: don't allocate vqs when names[i] = NULL Wei Wang
2019-01-03  9:59   ` Cornelia Huck
2019-01-09 16:30   ` Christian Borntraeger
2018-12-28  7:57 ` [PATCH v1 0/2] Virtio: fix some vq allocation issues Christian Borntraeger
2018-12-29  2:45   ` Wang, Wei W
2018-12-30  6:06     ` Halil Pasic
2018-12-31  6:03       ` Wang, Wei W
2018-12-31 23:40         ` [virtio-dev] " Halil Pasic
2019-01-02  9:53           ` Cornelia Huck
2019-01-02 13:23             ` Cornelia Huck
2019-01-02 15:59               ` Halil Pasic
2019-01-02 18:02                 ` Cornelia Huck
2019-01-02 19:13                   ` Halil Pasic
2019-01-02 13:56             ` Halil Pasic
2019-01-03  6:18   ` Wei Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox