]> Git Repo - qemu.git/commit - hw/virtio/virtio.c
virtio: limit avail bytes lookahead
authorMichael S. Tsirkin <[email protected]>
Thu, 29 Nov 2012 22:02:56 +0000 (00:02 +0200)
committerAnthony Liguori <[email protected]>
Thu, 29 Nov 2012 23:25:02 +0000 (17:25 -0600)
commite1f7b4812eab992de46c98b3726745afb042a7f0
tree288ec43f0807224674026579208dc46748bcaf32
parent044d003db9b6a588be2c9d0ec9de694ba3848551
virtio: limit avail bytes lookahead

Commit 0d8d7690850eb0cf2b2b60933cf47669a6b6f18f introduced
a regression in virtio-net performance because it looks
into the ring aggressively while we really only care
about a single packet worth of buffers.
Reported as bugzilla 1066055 in launchpad.

To fix, add parameters limiting lookahead, and
use in virtqueue_avail_bytes.

Signed-off-by: Michael S. Tsirkin <[email protected]>
Reported-by: Edivaldo de Araujo Pereira <[email protected]>
Tested-by: Edivaldo de Araujo Pereira <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
hw/virtio-rng.c
hw/virtio-serial-bus.c
hw/virtio.c
hw/virtio.h
This page took 0.025274 seconds and 4 git commands to generate.