scsi-block, scsi-generic: implement parse_cdb
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 16 Jul 2014 10:22:26 +0000 (12:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Jul 2014 15:36:33 +0000 (17:36 +0200)
commit3e7e180ab3f970a4e5b64b5fafd57c48c98ee560
tree5b41b83e0bc2c2f4264c7071af3993c44559d81b
parent592c3b289f77ee77d5bff25cb19326cc7f22a532
scsi-block, scsi-generic: implement parse_cdb

The callback lets the bus provide the direction and transfer count
for passthrough commands, enabling passthrough of vendor-specific
commands.

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