]> git.proxmox.com Git - mirror_qemu.git/commit - hw/scsi-bus.c
scsi-bus: Add MAINTENANCE_IN and MAINTENANCE_OUT SCSIRequest xfer and mode assignments
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 16 Jun 2010 13:43:06 +0000 (06:43 -0700)
committerKevin Wolf <kwolf@redhat.com>
Tue, 22 Jun 2010 12:38:01 +0000 (14:38 +0200)
commitc7126d5b3216e57b4e388e3fd34faa785b8e4bd0
tree6e94b3f463b93566db776e91e1b22d8c85f84c78
parent01bedebaaf9bb04138e963740a9ee6d10e18830b
scsi-bus: Add MAINTENANCE_IN and MAINTENANCE_OUT SCSIRequest xfer and mode assignments

This patch updates hw/scsi-bus.c to add MAINTENANCE_IN and MAINTENANCE_OUT case in
scsi_req_length() for TYPE_ROM with MMC commands.  It also adds the MAINTENANCE_OUT
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>
hw/scsi-bus.c
hw/scsi-defs.h