]> git.proxmox.com Git - qemu.git/commit
scsi-disk: move all non-DMA commands to scsi_disk_emulate_command
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Feb 2012 08:43:52 +0000 (09:43 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Jul 2012 15:44:09 +0000 (17:44 +0200)
commit101aa85f9862f23e17dec570221f53c46c5e86e1
treefb1eabecca79df71ae24d007456671573f391276
parentc1b3524788c156c49bff5f0415c39f9f0b7cc0e2
scsi-disk: move all non-DMA commands to scsi_disk_emulate_command

We want to use separate SCSIReqOps for emulated commands needing an
allocated buffer vs. those that are zerocopy when the HBA supports
S/G lists.  Ensure that all of the former are in scsi_disk_emulate_command.

Commands that do not have any parameters are more similar to emulated
commands, so also move them, even if they do I/O.

Finally, MODE SELECT and MODE SELECT(10) are broken because we do not
yet support passing parameter data _to_ emulated commands, so disable
them.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-disk.c