aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2019-12-09 11:46:13 -0500
committerMichael Roth <mdroth@linux.vnet.ibm.com>2020-05-12 09:19:15 -0500
commitd5a5d43e27308df63f4c7be4ec988c969ac45d1d (patch)
tree99dbfe26914eebe55688292bd9aceb48c66e2f88 /include
parent0253531824d1a0ef39cba3da3bdb1bb161834fd4 (diff)
downloadqemu-d5a5d43e27308df63f4c7be4ec988c969ac45d1d.zip
qemu-d5a5d43e27308df63f4c7be4ec988c969ac45d1d.tar.gz
qemu-d5a5d43e27308df63f4c7be4ec988c969ac45d1d.tar.bz2
virtio: add ability to delete vq through a pointer
Devices tend to maintain vq pointers, allow deleting them trough a vq pointer. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> (cherry picked from commit 722f8c51d8af223751dfb1d02de40043e8ba067e) *prereq for 421afd2fe8 Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/virtio/virtio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h
index c32a815..e18756d 100644
--- a/include/hw/virtio/virtio.h
+++ b/include/hw/virtio/virtio.h
@@ -183,6 +183,8 @@ VirtQueue *virtio_add_queue(VirtIODevice *vdev, int queue_size,
void virtio_del_queue(VirtIODevice *vdev, int n);
+void virtio_delete_queue(VirtQueue *vq);
+
void virtqueue_push(VirtQueue *vq, const VirtQueueElement *elem,
unsigned int len);
void virtqueue_flush(VirtQueue *vq, unsigned int count);