summaryrefslogtreecommitdiff
path: root/include/hw/virtio
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2014-05-22 16:22:42 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2014-06-04 09:56:12 +0200
commit5a05cbeeaaa2ec463d48c0026e8e6be243ea0bab (patch)
tree7bf66798239eab2181014f063b7862e48c7dd694 /include/hw/virtio
parent6d7e73d62fa32813b6f6a3575db2e9b5e0d43387 (diff)
downloadqemu-5a05cbeeaaa2ec463d48c0026e8e6be243ea0bab.tar.gz
qemu-5a05cbeeaaa2ec463d48c0026e8e6be243ea0bab.tar.bz2
qemu-5a05cbeeaaa2ec463d48c0026e8e6be243ea0bab.zip
virtio-blk: Factor out virtio_blk_handle_scsi_req from virtio_blk_handle_scsi
The common logic to process a scsi request in a VirtQueueElement is extracted to a function to share with dataplane. This makes VirtIOBlockReq.scsi unused, so drop it. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/hw/virtio')
-rw-r--r--include/hw/virtio/virtio-blk.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-blk.h b/include/hw/virtio/virtio-blk.h
index e4c41ff2ef..4bc9b549ad 100644
--- a/include/hw/virtio/virtio-blk.h
+++ b/include/hw/virtio/virtio-blk.h
@@ -155,4 +155,7 @@ typedef struct VirtIOBlock {
void virtio_blk_set_conf(DeviceState *dev, VirtIOBlkConf *blk);
+int virtio_blk_handle_scsi_req(VirtIOBlock *blk,
+ VirtQueueElement *elem);
+
#endif