From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nrbro-0002T8-A8 for qemu-devel@nongnu.org; Tue, 16 Mar 2010 14:51:48 -0400 Received: from [199.232.76.173] (port=42506 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nrbrk-0002Mq-7j for qemu-devel@nongnu.org; Tue, 16 Mar 2010 14:51:44 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nrbri-0000C1-Hh for qemu-devel@nongnu.org; Tue, 16 Mar 2010 14:51:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44909) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nrbrg-0000BQ-Qz for qemu-devel@nongnu.org; Tue, 16 Mar 2010 14:51:42 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o2GIpbhm007781 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 16 Mar 2010 14:51:37 -0400 From: Juan Quintela Date: Tue, 16 Mar 2010 19:51:24 +0100 Message-Id: <39ca5a0927c83df683c20f60bed98de2143b6b39.1268765204.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: Subject: [Qemu-devel] [PATCH 8/9] virtio-blk: change rq type to VirtIOBlockReq List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Signed-off-by: Juan Quintela --- 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 672a07b..c2ee27d 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -19,17 +19,19 @@ # include #endif +typedef struct VirtIOBlockReq VirtIOBlockReq; + typedef struct VirtIOBlock { VirtIODevice vdev; BlockDriverState *bs; VirtQueue *vq; - void *rq; + VirtIOBlockReq *rq; QEMUBH *bh; BlockConf *conf; } VirtIOBlock; -typedef struct VirtIOBlockReq +struct VirtIOBlockReq { VirtIOBlock *dev; VirtQueueElement elem; @@ -38,7 +40,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.6.1