diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2019-12-09 11:46:13 -0500 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-01-05 07:03:03 -0500 |
commit | 722f8c51d8af223751dfb1d02de40043e8ba067e (patch) | |
tree | 25431b93886e7395575e31a37059d0e2efef9391 /include/hw/virtio | |
parent | f0dcfddecee8b860e015bb07d67cfcbdfbfd51d9 (diff) | |
download | qemu-722f8c51d8af223751dfb1d02de40043e8ba067e.zip qemu-722f8c51d8af223751dfb1d02de40043e8ba067e.tar.gz qemu-722f8c51d8af223751dfb1d02de40043e8ba067e.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>
Diffstat (limited to 'include/hw/virtio')
-rw-r--r-- | include/hw/virtio/virtio.h | 2 |
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); |