[dpdk-dev] [PATCH] vhost: fix invalid use of stored last used index

David Marchand david.marchand at redhat.com
Sat May 15 08:10:05 CEST 2021


On Fri, May 14, 2021 at 6:02 PM Balazs Nemeth <bnemeth at redhat.com> 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 <bnemeth at redhat.com>
Reviewed-by: David Marchand <david.marchand at redhat.com>


-- 
David Marchand



More information about the dev mailing list