From 01bedebaaf9bb04138e963740a9ee6d10e18830b Mon Sep 17 00:00:00 2001 From: Nicholas Bellinger Date: Wed, 16 Jun 2010 06:42:58 -0700 Subject: 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 Acked-by: Gerd Hoffmann Signed-off-by: Kevin Wolf --- hw/scsi-bus.c | 1 + 1 file changed, 1 insertion(+) 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: -- cgit v1.2.3