On Fri, May 14, 2021 at 6:02 PM Balazs Nemeth <[email protected]> wrote:
>
> The optimization introduced by commit d18db8049c7c ("vhost: read last
> used index once") didn't account for the fact that
> vhost_flush_enqueue_shadow_packed increments the last_used_idx. For this
> reason, store last_used_idx after the potential call to
> vhost_flush_enqueue_shadow_packed.
>
Bugzilla ID: 699
> Fixes: d18db8049c7c ("vhost: read last used index once")
> Signed-off-by: Balazs Nemeth <[email protected]>
Reviewed-by: David Marchand <[email protected]>
--
David Marchand