libvhost-user: support resuming vq->last_avail_idx based on used_idx
commit35480cbfcb73143af66c8de4b444d686a46c2e88
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 29 Aug 2017 15:27:50 +0000 (29 17:27 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 8 Sep 2017 13:15:17 +0000 (8 16:15 +0300)
tree124ca6232f5b1fbc1a688096fc0aae14944cc1b2
parent0b4a775188cbe411d9ce7073ea1a24b72848327e
libvhost-user: support resuming vq->last_avail_idx based on used_idx

This is the same workaround as commit 523b018dde3b765, which was lost
with libvhost-user transition in commit e10e798c85c2331.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
contrib/libvhost-user/libvhost-user.c
contrib/libvhost-user/libvhost-user.h