summaryrefslogtreecommitdiffstats
path: root/hw/scsi-bus.c
diff options
context:
space:
mode:
authorNicholas Bellinger2010-06-16 15:42:58 +0200
committerKevin Wolf2010-06-22 14:38:01 +0200
commit01bedebaaf9bb04138e963740a9ee6d10e18830b (patch)
tree67ab430c28c3988b9a367a9f15e049a4afd676b8 /hw/scsi-bus.c
parentUpdate OpenBIOS images (diff)
downloadqemu-01bedebaaf9bb04138e963740a9ee6d10e18830b.tar.gz
qemu-01bedebaaf9bb04138e963740a9ee6d10e18830b.tar.xz
qemu-01bedebaaf9bb04138e963740a9ee6d10e18830b.zip
scsi-bus: Add PERSISTENT_RESERVE_OUT SCSIRequest->cmd.mode setup
This patch updates hw/scsi-bus.c to add the PERSISTENT_RESERVE_OUT cdb case in scsi_req_xfer_mode() to set SCSI_XFER_TO_DEV for outgoing WRITE data. Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/scsi-bus.c')
-rw-r--r--hw/scsi-bus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c
index 055a94d255..3575ba30ae 100644
--- a/hw/scsi-bus.c
+++ b/hw/scsi-bus.c
@@ -306,6 +306,7 @@ static void scsi_req_xfer_mode(SCSIRequest *req)
case MEDIUM_SCAN:
case SEND_VOLUME_TAG:
case WRITE_LONG_2:
+ case PERSISTENT_RESERVE_OUT:
req->cmd.mode = SCSI_XFER_TO_DEV;
break;
default: