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