virtio_pci: introduce vector allocation fallback for slow path virtqueues
authorJiri Pirko <jiri@nvidia.com>
Tue, 16 Jul 2024 11:35:44 +0000 (13:35 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 17 Jul 2024 09:43:21 +0000 (05:43 -0400)
commit06909a4427d6d57757c0a97a4a4be0aea363caab
tree54a9e0ab789ce03d45abcdbba7422a899f34cc84
parentb8b4e1a05d41c282e63a1772f00e376f6fb84410
virtio_pci: introduce vector allocation fallback for slow path virtqueues

If there is not enough vectors to satisfy all virtqueues, currently
the fallback is to use one vector for all virtqueues.

That may be unnecessary in some cases, when there is enough vectors per
data queues.

Introduce another fallback policy that tries to allocate vector for all
data queues, however for slow path queues (control/admin) it shares
config vector.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Message-Id: <20240716113552.80599-6-jiri@resnulli.us>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_pci_common.c
drivers/virtio/virtio_pci_common.h