scsi: pass cdb already to scsi_req_new
commitc39ce112b60ffafbaf700853e32bea74cbb2c148
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 3 Aug 2011 08:49:10 +0000 (3 10:49 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 12 Aug 2011 13:27:37 +0000 (12 08:27 -0500)
tree057c60e24ca46e5c880fe575fc17620c1dff0ea0
parent12010e7b29a2e777153440ded6fd5bd426eed3e4
scsi: pass cdb already to scsi_req_new

Right now the CDB is not passed to the SCSIBus until scsi_req_enqueue.
Passing it to scsi_req_new will let scsi_req_new dispatch common requests
through different reqops.

Moving the memcpy to scsi_req_new is a hack that will go away as
soon as scsi_req_new will also take care of the parsing.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/esp.c
hw/lsi53c895a.c
hw/scsi-bus.c
hw/scsi.h
hw/spapr_vscsi.c
hw/usb-msd.c