]> git.baikalelectronics.ru Git - kernel.git/commit
tools/virtio: fix virtio_test execution
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 18 Jan 2022 15:06:31 +0000 (16:06 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 6 Mar 2022 11:06:50 +0000 (06:06 -0500)
commit9071c982e536cfb8ff8af7f973eaf0099d850763
tree41de9ecfcbb8dd8001c2fff013d25d3aa34c1323
parenta19ac9b339daf283bba782bc93b9b2b4d22c184a
tools/virtio: fix virtio_test execution

virtio_test hangs on __vring_new_virtqueue() because `vqs_list_lock`
is not initialized.

Let's initialize it in vdev_info_init().

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20220118150631.167015-1-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
tools/virtio/virtio_test.c