This patchset addresses a few problems discovered when analyzing aborts of (an older version of) QEMU with backported commit afd9096eb1882f23929f5b5c177898ed231bac66 "virtio: error out if guest exceeds virtqueue size". Those problems are present in master, too, except that they don't trigger an abort and are thus not as easy to notice.
Roman Kagan (4): virtio: assert on ->inuse underflow virtio-balloon: make stats virtqueue length 1 virtio-balloon: don't restart stats timer in callback virtio-balloon: keep collecting stats on save/restore Cc: "Michael S. Tsirkin" <m...@redhat.com> hw/virtio/virtio-balloon.c | 49 +++++++++++++++++++++----------------- hw/virtio/virtio.c | 3 ++- include/hw/virtio/virtio-balloon.h | 1 + 3 files changed, 30 insertions(+), 23 deletions(-) -- 2.7.4