scsi-bus: prepare scsi_req_new for introduction of parse_cdb
commit769998a1dbf338a0cdeab2acf8ef605bcf635e01
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 16 Jul 2014 08:23:43 +0000 (16 10:23 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Jul 2014 15:36:09 +0000 (29 17:36 +0200)
treef693b71ec2d414aa682fcc7724ff3e6698852099
parent5a7348045091a2bc15d85bb177e5956aa6114e5a
scsi-bus: prepare scsi_req_new for introduction of parse_cdb

The per-SCSIDevice parse_cdb callback must not be called if the
request will go through special SCSIReqOps, so detect the special
cases early enough.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-bus.c