qemu/include/hw/virtio
Stefan Hajnoczi 297a75e6c5 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>
2016-09-09 20:58:34 +03:00
..
vhost-backend.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
vhost-scsi.h vhost-scsi: include linux/vhost.h 2015-09-25 12:04:41 +02:00
vhost.h vhost: add vhost_net_set_backend() 2016-07-29 00:33:49 +03:00
virtio-access.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
virtio-balloon.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
virtio-blk.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
virtio-bus.h virtio-bus: remove old set_host_notifier callback 2016-06-24 08:47:35 +03:00
virtio-gpu.h virtio-gpu: fix missing log.h include file 2016-08-16 11:21:31 +01:00
virtio-input.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
virtio-net.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
virtio-rng.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
virtio-scsi.h virtio-scsi: Replace HandleOutput typedef 2016-07-21 20:44:19 +03:00
virtio-serial.h Clean up ill-advised or unusual header guards 2016-07-12 16:20:46 +02:00
virtio.h virtio: add virtqueue_rewind() 2016-09-09 20:58:34 +03:00