| 81931012 | 28-Nov-2022 |
Davidlohr Bueso <[email protected]> |
tools/virtio: remove smp_read_barrier_depends()
This gets rid of the last references to smp_read_barrier_depends() which for the kernel side was removed in v5.9. The serialization required for Alph
tools/virtio: remove smp_read_barrier_depends()
This gets rid of the last references to smp_read_barrier_depends() which for the kernel side was removed in v5.9. The serialization required for Alpha is done inside READ_ONCE() instead of having users deal with it. Simply use a full barrier, the architecture does not have rmb in the first place.
Signed-off-by: Davidlohr Bueso <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Xuan Zhuo <[email protected]>
show more ...
|
| a311650a | 27-Oct-2017 |
Michael S. Tsirkin <[email protected]> |
virtio/ringtest: virtio_ring: fix up need_event math
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.
Re
virtio/ringtest: virtio_ring: fix up need_event math
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 <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Jens Freimann <[email protected]>
show more ...
|
| 948a8ac2 | 06-Oct-2016 |
Paolo Bonzini <[email protected]> |
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
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 <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
show more ...
|