summary refs log tree commit diff stats
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2016-09-07 17:20:48 +0200
committerMichael S. Tsirkin <mst@redhat.com>2016-09-09 20:58:34 +0300
commit297a75e6c55d91db2704a3d6e4029d99c7df51fd (patch)
tree43f752f0502cecc089680c1a08dc6b5cb6c3da9c /scripts/qapi-commands.py
parent104e70cae78bd4afd95d948c6aff188f10508a9c (diff)
downloadfocaccia-qemu-297a75e6c55d91db2704a3d6e4029d99c7df51fd.tar.gz
focaccia-qemu-297a75e6c55d91db2704a3d6e4029d99c7df51fd.zip
virtio: add virtqueue_rewind()
virtqueue_discard() requires a VirtQueueElement but virtio-balloon does
not migrate its in-use element.  Introduce a new function that is
similar to virtqueue_discard() but doesn't require a VirtQueueElement.

This will allow virtio-balloon to access element again after migration
with the usual proviso that the guest may have modified the vring since
last time.

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: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions