Skip to contentSkip to conversation

: Add PERSISTENT_RESERVE_OUT SCSIRequest->cmd.mode setup

PATCH Applied Nicholas A. Bellinger 1 participant 1 message Jun 16, 2010 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 : Add PERSISTENT_RESERVE_OUT SCSIRequest->cmd.mode setup

From: Nicholas Bellinger <[email protected]>

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.

---
 hw/scsi-bus.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
hw/scsi-bus.c +1 -0
index b8e4b71..7a5fa48 100644
@@ -389,6 +389,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:
Signature · 1 line
1.5.6.5