[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/10] scsi-generic: remove scsi_req_fixup
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 02/10] scsi-generic: remove scsi_req_fixup |
Date: |
Wed, 12 Oct 2011 16:24:03 +0200 |
This is not needed anymore, since asynchronous ioctls were introduced
by commit 221f715 (new scsi-generic abstraction, use SG_IO, 2009-03-28).
Signed-off-by: Paolo Bonzini <address@hidden>
---
hw/scsi-generic.c | 15 ---------------
1 files changed, 0 insertions(+), 15 deletions(-)
diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c
index 1e5c41b..5130e9a 100644
--- a/hw/scsi-generic.c
+++ b/hw/scsi-generic.c
@@ -233,19 +233,6 @@ static uint8_t *scsi_get_buf(SCSIRequest *req)
return r->buf;
}
-static void scsi_req_fixup(SCSIRequest *req)
-{
- switch(req->cmd.buf[0]) {
- case REWIND:
- case START_STOP:
- if (req->dev->type == TYPE_TAPE) {
- /* force IMMED, otherwise qemu waits end of command */
- req->cmd.buf[1] = 0x01;
- }
- break;
- }
-}
-
/* Execute a scsi command. Returns the length of the data expected by the
command. This will be Positive for data transfers from the device
(eg. disk reads), negative for transfers to the device (eg. disk writes),
@@ -257,8 +244,6 @@ static int32_t scsi_send_command(SCSIRequest *req, uint8_t
*cmd)
SCSIDevice *s = r->req.dev;
int ret;
- scsi_req_fixup(&r->req);
-
DPRINTF("Command: lun=%d tag=0x%x len %zd data=0x%02x", lun, tag,
r->req.cmd.xfer, cmd[0]);
--
1.7.6
- [Qemu-devel] [PATCH 00/10] scsi: add specialized block device passthrough, Paolo Bonzini, 2011/10/12
- [Qemu-devel] [PATCH 03/10] scsi-generic: check ioctl statuses when SG_IO succeeds, Paolo Bonzini, 2011/10/12
- [Qemu-devel] [PATCH 02/10] scsi-generic: remove scsi_req_fixup,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 05/10] scsi-disk: do not duplicate BlockDriverState member, Paolo Bonzini, 2011/10/12
- [Qemu-devel] [PATCH 07/10] scsi: make reqops const, Paolo Bonzini, 2011/10/12
- [Qemu-devel] [PATCH 01/10] scsi-generic: drop SCSIGenericState, Paolo Bonzini, 2011/10/12
- [Qemu-devel] [PATCH 06/10] scsi-disk: small clean up to INQUIRY, Paolo Bonzini, 2011/10/12
- [Qemu-devel] [PATCH 08/10] scsi: export scsi_generic_reqops, Paolo Bonzini, 2011/10/12
- [Qemu-devel] [PATCH 09/10] scsi: pass cdb to alloc_req, Paolo Bonzini, 2011/10/12
- [Qemu-devel] [PATCH 04/10] scsi-generic: look at host status, Paolo Bonzini, 2011/10/12
- [Qemu-devel] [PATCH 10/10] scsi-disk: add scsi-block for device passthrough, Paolo Bonzini, 2011/10/12