On Thu, Nov 16, 2017 at 06:48:34PM +0000, Maxime Coquelin wrote:
In case of backend crash, it is not possible to restore internal
avail index from the backend value as vhost_get_vring_base
callback fails.

This patch provides a new interface to restore internal avail index
from the vring used index, as done by some vhost-user backend on
reconnection.

Signed-off-by: Maxime Coquelin <maxime.coque...@redhat.com>
---
hw/virtio/virtio.c         | 10 ++++++++++
include/hw/virtio/virtio.h |  1 +
2 files changed, 11 insertions(+)


Reviewed-by: Jens Freimann <jfreim...@redhat.com>



Reply via email to