diff options
| author | Pan Nengyuan | 2020-02-24 05:13:36 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2020-02-25 14:32:56 +0100 |
| commit | 38e245a42ca81c47d477314c3cfabfcb3d3cec11 (patch) | |
| tree | 49de32a3647cf0977d6583a9b0f686ddb45db3c0 /include | |
| parent | vhost-user-blk: delete virtioqueues in unrealize to fix memleaks (diff) | |
| download | qemu-38e245a42ca81c47d477314c3cfabfcb3d3cec11.tar.gz qemu-38e245a42ca81c47d477314c3cfabfcb3d3cec11.tar.xz qemu-38e245a42ca81c47d477314c3cfabfcb3d3cec11.zip | |
vhost-user-blk: convert to new virtio_delete_queue
use the new virtio_delete_queue function to cleanup.
Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
Message-Id: <20200224041336.30790-3-pannengyuan@huawei.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/hw/virtio/vhost-user-blk.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/virtio/vhost-user-blk.h b/include/hw/virtio/vhost-user-blk.h index 108bfadeeb..05ea0ad183 100644 --- a/include/hw/virtio/vhost-user-blk.h +++ b/include/hw/virtio/vhost-user-blk.h @@ -36,7 +36,8 @@ typedef struct VHostUserBlk { struct vhost_dev dev; struct vhost_inflight *inflight; VhostUserState vhost_user; - struct vhost_virtqueue *vqs; + struct vhost_virtqueue *vhost_vqs; + VirtQueue **virtqs; guint watch; bool connected; } VHostUserBlk; |
