On Fri, Sep 20, 2024 at 11:09 AM Maxime Coquelin <maxime.coque...@redhat.com> wrote: > > This patch introduces a way for backend to keep track > of the needed information to be able to reconnect without > frontend cooperation. > > It will be used for VDUSE, which does not provide interface > for the backend to save and later recover local virtqueues > metadata needed to reconnect. > > Vhost-user support could also be added for improved packed > ring reconnection support. > > Signed-off-by: Maxime Coquelin <maxime.coque...@redhat.com>
vq->last_avail_idx gets updated in other places and I suspect we are missing some calls to vhost_virtqueue_reconnect_log_split/packed. I spotted: - lib/vhost/vhost.c: rte_vhost_set_vring_base() - lib/vhost/vhost_user.c: translate_ring_addresses(), vhost_user_set_vring_base(). The rest lgtm. -- David Marchand