virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] tools/virtio: fix vrinth_test hang
       [not found] <20221115111746.858-1-liming.wu@jaguarmicro.com>
@ 2022-11-17  5:41 ` Jason Wang
  0 siblings, 0 replies; only message in thread
From: Jason Wang @ 2022-11-17  5:41 UTC (permalink / raw)
  To: Liming Wu, mst; +Cc: virtualization


在 2022/11/15 19:17, Liming Wu 写道:
> vringh_test hangs on __vring_new_virtqueue() because `vqs_list_lock`
> is not initialized.
>
> Let's initialize it  before call __vring_new_virtqueue()
>
> Signed-off-by: Liming Wu <liming.wu@jaguarmicro.com>


Acked-by: Jason Wang <jasowang@redhat.com>

Thanks


> ---
>   tools/virtio/vringh_test.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/tools/virtio/vringh_test.c b/tools/virtio/vringh_test.c
> index fa87b58bd5fa..98ff808d6f0c 100644
> --- a/tools/virtio/vringh_test.c
> +++ b/tools/virtio/vringh_test.c
> @@ -308,6 +308,7 @@ static int parallel_test(u64 features,
>   
>   		gvdev.vdev.features = features;
>   		INIT_LIST_HEAD(&gvdev.vdev.vqs);
> +		spin_lock_init(&gvdev.vdev.vqs_list_lock);
>   		gvdev.to_host_fd = to_host[1];
>   		gvdev.notifies = 0;
>   
> @@ -455,6 +456,7 @@ int main(int argc, char *argv[])
>   	getrange = getrange_iov;
>   	vdev.features = 0;
>   	INIT_LIST_HEAD(&vdev.vqs);
> +	spin_lock_init(&vdev.vqs_list_lock);
>   
>   	while (argv[1]) {
>   		if (strcmp(argv[1], "--indirect") == 0)

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-17  5:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20221115111746.858-1-liming.wu@jaguarmicro.com>
2022-11-17  5:41 ` [PATCH] tools/virtio: fix vrinth_test hang Jason Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).