qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 01/14] scsi-bus: Add PERSISTENT_RESERVE_OUT SCSIRequ


From: Kevin Wolf
Subject: [Qemu-devel] [PATCH 01/14] scsi-bus: Add PERSISTENT_RESERVE_OUT SCSIRequest->cmd.mode setup
Date: Tue, 22 Jun 2010 16:09:20 +0200

From: Nicholas Bellinger <address@hidden>

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 <address@hidden>
Acked-by: Gerd Hoffmann <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
 hw/scsi-bus.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hw/scsi-bus.c b/hw/scsi-bus.c
index 055a94d..3575ba3 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:
-- 
1.6.6.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]