[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 36/41] virtio-blk: change rq type to VirtIOBlockReq
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 36/41] virtio-blk: change rq type to VirtIOBlockReq |
Date: |
Wed, 2 Dec 2009 13:04:34 +0100 |
Signed-off-by: Juan Quintela <address@hidden>
---
hw/virtio-blk.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index 918be74..b716a36 100644
--- a/hw/virtio-blk.c
+++ b/hw/virtio-blk.c
@@ -19,12 +19,14 @@
# include <scsi/sg.h>
#endif
+typedef struct VirtIOBlockReq VirtIOBlockReq;
+
typedef struct VirtIOBlock
{
VirtIODevice vdev;
BlockDriverState *bs;
VirtQueue *vq;
- void *rq;
+ VirtIOBlockReq *rq;
char serial_str[BLOCK_SERIAL_STRLEN + 1];
QEMUBH *bh;
size_t config_size;
@@ -71,7 +73,7 @@ static inline void virtio_identify_template(struct
virtio_blk_config *bc)
put_le16(p + 103, lba_sectors >> 48);
}
-typedef struct VirtIOBlockReq
+struct VirtIOBlockReq
{
VirtIOBlock *dev;
VirtQueueElement elem;
@@ -80,7 +82,7 @@ typedef struct VirtIOBlockReq
struct virtio_scsi_inhdr *scsi;
QEMUIOVector qiov;
struct VirtIOBlockReq *next;
-} VirtIOBlockReq;
+};
static void virtio_blk_req_complete(VirtIOBlockReq *req, int status)
{
--
1.6.5.2
- [Qemu-devel] Re: [PATCH 33/41] virtio-net: port to vmstate, (continued)
[Qemu-devel] Re: [PATCH 33/41] virtio-net: port to vmstate, Michael S. Tsirkin, 2009/12/02
[Qemu-devel] [PATCH 34/41] virtio-console: port to vmstate, Juan Quintela, 2009/12/02
[Qemu-devel] [PATCH 35/41] virtio-balloon: port to vmstate, Juan Quintela, 2009/12/02
[Qemu-devel] [PATCH 36/41] virtio-blk: change rq type to VirtIOBlockReq,
Juan Quintela <=
[Qemu-devel] [PATCH 37/41] QLIST: Introduce QLIST_COPY_HEAD, Juan Quintela, 2009/12/02
[Qemu-devel] [PATCH 38/41] virtio-blk: use QLIST for the list of requests, Juan Quintela, 2009/12/02
[Qemu-devel] [PATCH 39/41] virtio-blk: add VirtIOBlokReqHead type, Juan Quintela, 2009/12/02
[Qemu-devel] [PATCH 40/41] virtio-blk: port to vmstate, Juan Quintela, 2009/12/02
[Qemu-devel] [PATCH 41/41] virtio: virtio_save/load are not used anymore, Juan Quintela, 2009/12/02