Re: [PATCH] virtio/ringtest: virtio_ring: fix up need_event math

From: Jens Freimann
Date: Mon Oct 30 2017 - 09:00:47 EST


On Fri, Oct 27, 2017 at 01:11:13PM +0000, Michael S. Tsirkin wrote:
last kicked event index must be updated unconditionally:
even if we don't need to kick, we do not want to re-check
the same entry for events.

Reported-by: Cornelia Huck <cohuck@xxxxxxxxxx>
Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
---
tools/virtio/ringtest/virtio_ring_0_9.c | 24 ++++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)


Reviewed-by: Jens Freimann <jfreimann@xxxxxxxxxx>