[PATCH] vhost_user: Reset vq enable flag in vu_cleanup()
vu_cleanup() resets most virtqueue state (started, notification,
file descriptors) but does not reset the enable flag. After a
QEMU disconnect and reconnect, the stale enable flag causes
vu_set_vring_enable_exec() to hit its early return check
(vq->enable == enable).
Reset vq->enable to false in vu_cleanup() alongside the other
virtqueue state.
Signed-off-by: Laurent Vivier
On Thu, 3 Sep 2026 13:16:00 +0200
Laurent Vivier
vu_cleanup() resets most virtqueue state (started, notification, file descriptors) but does not reset the enable flag. After a QEMU disconnect and reconnect, the stale enable flag causes vu_set_vring_enable_exec() to hit its early return check (vq->enable == enable).
Reset vq->enable to false in vu_cleanup() alongside the other virtqueue state.
Signed-off-by: Laurent Vivier
Reviewed-by: David Gibson
Applied. -- Stefano
participants (2)
-
Laurent Vivier
-
Stefano Brivio