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

2017-10-27 Thread Michael S. Tsirkin
On Thu, Oct 26, 2017 at 10:36:47AM +0200, Cornelia Huck wrote: > On Thu, 26 Oct 2017 04:48:01 +0300 > "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. > > > > Si

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

2017-10-26 Thread Jason Wang
On 2017年10月26日 09:48, 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. Signed-off-by: Michael S. Tsirkin --- tools/virtio/ringtest/ring.c | 24 +++- 1

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

2017-10-26 Thread Cornelia Huck
On Thu, 26 Oct 2017 04:48:01 +0300 "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. > > Signed-off-by: Michael S. Tsirkin > --- > tools/virtio/ringtest/ring.c | 24 +++

[PATCH] virtio/ringtest: fix up need_event math

2017-10-25 Thread Michael S. Tsirkin
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. Signed-off-by: Michael S. Tsirkin --- tools/virtio/ringtest/ring.c | 24 +++- 1 file changed, 15 insertions(+), 9 deletions(-) diff -