OSDN Git Service

scsi-disk: split scsi-disk reqops
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Feb 2012 08:53:42 +0000 (09:53 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 26 Jul 2012 15:44:09 +0000 (17:44 +0200)
commitb08d0ea0446aa91f373c9df4254ba3bc4ee84098
tree928f420d7d6c7c3bfe54e52f1d42b1fba66f09cb
parent101aa85f9862f23e17dec570221f53c46c5e86e1
scsi-disk: split scsi-disk reqops

Only checks for present medium were still done in scsi_send_command
for emulated commands.  So move those to scsi_disk_emulate_command
and return different SCSIReqOps depending on the kind of command.

Checks for present medium can be done unconditionally for the
scsi_disk_dma_reqops case.

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