diff options
author | Paolo Bonzini | 2016-10-06 11:39:12 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2016-10-31 00:21:43 +0200 |
commit | 948a8ac2964f39161ebf832dea0aa1ced90101bb (patch) | |
tree | b74d1bb2f74384b1a57209bf2d0f453de3968347 /scripts/config | |
parent | d3c3589b8b3cd4fabf4cd137facb42a7fb36bd7f (diff) |
ringtest: poll for new buffers once before updating event index
Updating the event index has a memory barrier and causes more work
on the other side to actually signal the event. It is unnecessary
if a new buffer has already appeared on the ring, so poll once before
doing the update.
The effect of this on the 0.9 ring implementation is pretty much
invisible, but on the new-style ring it provides a consistent 3%
performance improvement.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/config')
0 files changed, 0 insertions, 0 deletions