summaryrefslogtreecommitdiffstats
path: root/hw/char
diff options
context:
space:
mode:
authorPaolo Bonzini2014-07-16 10:39:05 +0200
committerPaolo Bonzini2014-07-29 17:36:25 +0200
commitff34c32ccc29fc23c11f0ef6c86257e23f9e3266 (patch)
tree60023eae3693f494576d6d96dd1716d956888926 /hw/char
parentscsi-bus: prepare scsi_req_new for introduction of parse_cdb (diff)
downloadqemu-ff34c32ccc29fc23c11f0ef6c86257e23f9e3266.tar.gz
qemu-ff34c32ccc29fc23c11f0ef6c86257e23f9e3266.tar.xz
qemu-ff34c32ccc29fc23c11f0ef6c86257e23f9e3266.zip
scsi-bus: introduce parse_cdb in SCSIDeviceClass and SCSIBusInfo
These callbacks will let devices do their own request parsing, or defer it to the bus. If the bus does not provide an implementation, in turn, fall back to the default parsing routine. Swap the first two arguments to scsi_req_parse, and rename it to scsi_req_parse_cdb, for consistency. Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/char')
0 files changed, 0 insertions, 0 deletions