diff options
| author | Stefan Hajnoczi | 2016-08-15 14:54:16 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2016-08-23 18:20:24 +0200 |
| commit | 58a83c61496eeb0d31571a07a51bc1947e3379ac (patch) | |
| tree | ed98b38e087ad78bc1dad8162a75457c501b346f /scripts/switch-timer-api | |
| parent | virtio: recalculate vq->inuse after migration (diff) | |
| download | qemu-58a83c61496eeb0d31571a07a51bc1947e3379ac.tar.gz qemu-58a83c61496eeb0d31571a07a51bc1947e3379ac.tar.xz qemu-58a83c61496eeb0d31571a07a51bc1947e3379ac.zip | |
virtio: decrement vq->inuse in virtqueue_discard()
virtqueue_discard() moves vq->last_avail_idx back so the element can be
popped again. It's necessary to decrement vq->inuse to avoid "leaking"
the element count.
Cc: qemu-stable@nongnu.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
