acrn-kernel/tools/virtio
Ricardo Cañuelo dc6466fcde tools/virtio: initialize spinlocks in vring_test.c
[ Upstream commit c262f75cb6 ]

The virtio_device vqs_list spinlocks must be initialized before use to
prevent functions that manipulate the device virtualqueues, such as
vring_new_virtqueue(), from blocking indefinitely.

Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
Message-Id: <20221012062949.1526176-1-ricardo.canuelo@collabora.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-24 07:24:30 +01:00
..
asm
crypto
generated
linux virtio_test: fixup for vq reset 2022-09-27 18:30:49 -04:00
ringtest
uapi/linux
vhost_test
virtio-trace
xen
.gitignore
Makefile
virtio_test.c virtio_ring: split: stop __vring_new_virtqueue as export symbol 2022-08-11 04:06:38 -04:00
vringh_test.c tools/virtio: initialize spinlocks in vring_test.c 2023-01-24 07:24:30 +01:00