vhost: allocate SVQ device file descriptors at device start
commit3cfb4d069cd2977b707fb519c455d7d416e1f4b0
authorEugenio Pérez <eperezma@redhat.com>
Thu, 15 Dec 2022 11:31:35 +0000 (15 12:31 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 21 Dec 2022 11:35:28 +0000 (21 06:35 -0500)
tree6531c95bbd3b01d73df84e65841dd62d6bbedb91
parent20e7412bfd63c68f1798fbdb799aedb7e05fee88
vhost: allocate SVQ device file descriptors at device start

The next patches will start control SVQ if possible. However, we don't
know if that will be possible at qemu boot anymore.

Delay device file descriptors until we know it at device start. This
will avoid to create them if the device does not support SVQ.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20221215113144.322011-4-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-shadow-virtqueue.c
hw/virtio/vhost-vdpa.c