scsi: pass residual amount to command_complete
commit01e95455889780871374e1b72cd6919cfbd23399
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Jul 2011 09:55:37 +0000 (6 11:55 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 Feb 2012 12:29:07 +0000 (22 13:29 +0100)
tree402da6c430ccf8c2e8169201c920631786d69386
parentda2213275237a35d1e063db7d6d820905e7d4084
scsi: pass residual amount to command_complete

With the upcoming sglist support, HBAs will not see any transfer_data
call and will not have a way to detect short transfers.  So pass the
residual amount of data upon command completion.

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