diff options
author | Ladi Prosek <lprosek@redhat.com> | 2016-09-07 17:20:47 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-09-09 20:58:34 +0300 |
commit | 104e70cae78bd4afd95d948c6aff188f10508a9c (patch) | |
tree | c830ede7c24fda367e5de6c0886cfccd1582b2c0 /hw/acpi | |
parent | 4b7f91ed0270a371e1933efa21ba600b6da23ab9 (diff) | |
download | qemu-104e70cae78bd4afd95d948c6aff188f10508a9c.tar.gz qemu-104e70cae78bd4afd95d948c6aff188f10508a9c.tar.bz2 qemu-104e70cae78bd4afd95d948c6aff188f10508a9c.zip |
virtio-balloon: discard virtqueue element on reset
The one pending element is being freed but not discarded on device
reset, which causes svq->inuse to creep up, eventually hitting the
"Virtqueue size exceeded" error.
Properly discarding the element on device reset makes sure that its
buffers are unmapped and the inuse counter stays balanced.
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Roman Kagan <rkagan@virtuozzo.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Ladi Prosek <lprosek@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/acpi')
0 files changed, 0 insertions, 0 deletions