Re: [PATCH] ringtest: Look at next descriptor before setting up event index

2016-10-03 Thread Paolo Bonzini
On 19/09/2016 13:38, Paolo Bonzini wrote: > This avoids an expensive memory barrier if the next descriptor > is already there. The benefit is around 10%. > > Signed-off-by: Paolo Bonzini > --- > tools/virtio/ringtest/ring.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/tools

[PATCH] ringtest: Look at next descriptor before setting up event index

2016-09-19 Thread Paolo Bonzini
This avoids an expensive memory barrier if the next descriptor is already there. The benefit is around 10%. Signed-off-by: Paolo Bonzini --- tools/virtio/ringtest/ring.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/virtio/ringtest/ring.c b/tools/virtio/ringtest/ring.c index c