diff options
author | Fam Zheng | 2014-06-11 06:11:42 +0200 |
---|---|---|
committer | Kevin Wolf | 2014-06-27 18:17:59 +0200 |
commit | 09f645877037590415016b59f6d32be1a27229c6 (patch) | |
tree | e782548c1e2f94f3fe8365010bdf7d8cc688ed69 /include | |
parent | block: Add node-name argument to drive-mirror (diff) | |
download | qemu-09f645877037590415016b59f6d32be1a27229c6.tar.gz qemu-09f645877037590415016b59f6d32be1a27229c6.tar.xz qemu-09f645877037590415016b59f6d32be1a27229c6.zip |
virtio-blk: Move VirtIOBlockReq to header
For later reusing by dataplane code.
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 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-blk.h b/include/hw/virtio/virtio-blk.h index 4bc9b549ad..d05d177ec5 100644 --- a/include/hw/virtio/virtio-blk.h +++ b/include/hw/virtio/virtio-blk.h @@ -17,6 +17,7 @@ #include "hw/virtio/virtio.h" #include "hw/block/block.h" #include "sysemu/iothread.h" +#include "block/block.h" #define TYPE_VIRTIO_BLK "virtio-blk-device" #define VIRTIO_BLK(obj) \ @@ -133,6 +134,16 @@ typedef struct VirtIOBlock { #endif } VirtIOBlock; +typedef struct VirtIOBlockReq { + VirtIOBlock *dev; + VirtQueueElement elem; + struct virtio_blk_inhdr *in; + struct virtio_blk_outhdr *out; + QEMUIOVector qiov; + struct VirtIOBlockReq *next; + BlockAcctCookie acct; +} VirtIOBlockReq; + #define DEFINE_VIRTIO_BLK_FEATURES(_state, _field) \ DEFINE_VIRTIO_COMMON_FEATURES(_state, _field) |