Re: [PATCH] vhost: fix deadlock with no multiqueue

2023-03-26 Thread David Marchand
On Thu, Mar 23, 2023 at 3:48 PM Maxime Coquelin wrote: > On 3/23/23 15:44, David Marchand wrote: > > This deadlock happens when a guest, that had virtio ports with multi > > queues configured, does not announce the multi q feature in > > SET_FEATURES. > > In such a situation, all vq locks are alre

Re: [PATCH] vhost: fix deadlock with no multiqueue

2023-03-23 Thread Maxime Coquelin
On 3/23/23 15:44, David Marchand wrote: This deadlock happens when a guest, that had virtio ports with multi queues configured, does not announce the multi q feature in SET_FEATURES. In such a situation, all vq locks are already taken before calling free_vq(), which itself takes the lock. As

[PATCH] vhost: fix deadlock with no multiqueue

2023-03-23 Thread David Marchand
This deadlock happens when a guest, that had virtio ports with multi queues configured, does not announce the multi q feature in SET_FEATURES. In such a situation, all vq locks are already taken before calling free_vq(), which itself takes the lock. As mentioned in the code, in this situation, the