linux-stable/drivers/virtio
Xuan Zhuo a10fba0377 virtio: find_vqs() add arg sizes
find_vqs() adds a new parameter sizes to specify the size of each vq
vring.

NULL as sizes means that all queues in find_vqs() use the maximum size.
A value in the array is 0, which means that the corresponding queue uses
the maximum size.

In the split scenario, the meaning of size is the largest size, because
it may be limited by memory, the virtio core will try a smaller size.
And the size is power of 2.

Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220801063902.129329-34-xuanzhuo@linux.alibaba.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2022-08-11 04:06:40 -04:00
..
Kconfig drivers/virtio: Clarify CONFIG_VIRTIO_MEM for unsupported architectures 2022-08-11 04:06:38 -04:00
Makefile virtio-pci: introduce legacy device module 2021-11-01 04:30:34 -04:00
virtio.c virtio: disable notification hardening by default 2022-06-24 02:49:48 -04:00
virtio_balloon.c virtio: Replace unsigned with unsigned int 2022-05-31 12:45:09 -04:00
virtio_dma_buf.c dma-buf: move dma-buf symbols into the DMA_BUF module namespace 2021-10-25 14:53:08 +02:00
virtio_input.c virtio: wrap config->reset calls 2022-01-14 18:50:52 -05:00
virtio_mem.c drivers: virtio_mem: use pageblock size as the minimum virtio_mem size. 2022-05-13 07:20:13 -07:00
virtio_mmio.c virtio: find_vqs() add arg sizes 2022-08-11 04:06:40 -04:00
virtio_pci_common.c virtio: find_vqs() add arg sizes 2022-08-11 04:06:40 -04:00
virtio_pci_common.h virtio: find_vqs() add arg sizes 2022-08-11 04:06:40 -04:00
virtio_pci_legacy.c virtio: record the maximum queue num supported by the device. 2022-08-11 04:06:38 -04:00
virtio_pci_legacy_dev.c virtio/virtio_pci_legacy_dev: ensure the correct return value 2022-01-14 18:50:53 -05:00
virtio_pci_modern.c virtio: find_vqs() add arg sizes 2022-08-11 04:06:40 -04:00
virtio_pci_modern_dev.c virtio_pci: introduce helper to get/set queue reset 2022-08-11 04:06:40 -04:00
virtio_ring.c virtio_ring: struct virtqueue introduce reset 2022-08-11 04:06:40 -04:00
virtio_vdpa.c virtio: find_vqs() add arg sizes 2022-08-11 04:06:40 -04:00