vhost: Fix device's used descriptor dequeue
commit81abfa5724c9a6502d7a1d3a67c55f2a303a1170
authorEugenio Pérez <eperezma@redhat.com>
Thu, 12 May 2022 17:57:43 +0000 (12 19:57 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 13 May 2022 11:57:26 +0000 (13 07:57 -0400)
tree7ca89f5f6b71dc4ff2a5f9326796d1a682e21c67
parent495fe3a78749c39c0e772c4e1a55d6cb8a7e5292
vhost: Fix device's used descriptor dequeue

Only the first one of them were properly enqueued back.

Fixes: 100890f7ca ("vhost: Shadow virtqueue buffers forwarding")

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20220512175747.142058-3-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-shadow-virtqueue.c