diff options
author | Fam Zheng <famz@redhat.com> | 2014-06-11 12:11:43 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-06-27 18:18:13 +0200 |
commit | 671ec3f056559f22a2531a91dce3a258b9b5eb8a (patch) | |
tree | 06e3fbd79cbf96fac9a475a4bbd0f2dbaa3f6a1e /include/hw | |
parent | 09f645877037590415016b59f6d32be1a27229c6 (diff) | |
download | hqemu-671ec3f056559f22a2531a91dce3a258b9b5eb8a.zip hqemu-671ec3f056559f22a2531a91dce3a258b9b5eb8a.tar.gz |
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/hw')
-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 d05d177..b495e42 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; |