]> git.baikalelectronics.ru Git - kernel.git/commit
vsock/virtio: enable VQs early on probe
authorStefano Garzarella <sgarzare@redhat.com>
Wed, 23 Mar 2022 17:36:25 +0000 (18:36 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 25 Mar 2022 01:36:36 +0000 (18:36 -0700)
commit5c0aaf527099a1f12d7c88cffcdd9bb281da7a5b
tree4775b0f76a941c0bef15d5a4405f947476c0764a
parent79035a3b5c347e7f86cc1d6c31e358fa24df440c
vsock/virtio: enable VQs early on probe

virtio spec requires drivers to set DRIVER_OK before using VQs.
This is set automatically after probe returns, but virtio-vsock
driver uses VQs in the probe function to fill rx and event VQs
with new buffers.

Let's fix this, calling virtio_device_ready() before using VQs
in the probe function.

Fixes: e51848d50997 ("VSOCK: Introduce virtio_transport.ko")
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/vmw_vsock/virtio_transport.c