diff options
author | Fam Zheng | 2014-06-11 06:11:43 +0200 |
---|---|---|
committer | Kevin Wolf | 2014-06-27 18:18:13 +0200 |
commit | 671ec3f056559f22a2531a91dce3a258b9b5eb8a (patch) | |
tree | 06e3fbd79cbf96fac9a475a4bbd0f2dbaa3f6a1e /include | |
parent | virtio-blk: Move VirtIOBlockReq to header (diff) | |
download | qemu-671ec3f056559f22a2531a91dce3a258b9b5eb8a.tar.gz qemu-671ec3f056559f22a2531a91dce3a258b9b5eb8a.tar.xz qemu-671ec3f056559f22a2531a91dce3a258b9b5eb8a.zip |
virtio-blk: Convert VirtIOBlockReq.elem to pointer
This will make converging with dataplane code easier.
Add virtio_blk_free_request to handle the freeing of request internal
fields.
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/virtio/virtio-blk.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/virtio/virtio-blk.h b/include/hw/virtio/virtio-blk.h index d05d177ec5..b495e42d6d 100644 --- a/include/hw/virtio/virtio-blk.h +++ b/include/hw/virtio/virtio-blk.h @@ -136,7 +136,7 @@ typedef struct VirtIOBlock { typedef struct VirtIOBlockReq { VirtIOBlock *dev; - VirtQueueElement elem; + VirtQueueElement *elem; struct virtio_blk_inhdr *in; struct virtio_blk_outhdr *out; QEMUIOVector qiov; |