diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-07-06 11:55:37 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-02-22 13:29:07 +0100 |
commit | 01e95455889780871374e1b72cd6919cfbd23399 (patch) | |
tree | 402da6c430ccf8c2e8169201c920631786d69386 /hw/esp.c | |
parent | da2213275237a35d1e063db7d6d820905e7d4084 (diff) |
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>
Diffstat (limited to 'hw/esp.c')
-rw-r--r-- | hw/esp.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -390,7 +390,8 @@ static void esp_do_dma(ESPState *s) esp_dma_done(s); } -static void esp_command_complete(SCSIRequest *req, uint32_t status) +static void esp_command_complete(SCSIRequest *req, uint32_t status, + size_t resid) { ESPState *s = DO_UPCAST(ESPState, busdev.qdev, req->bus->qbus.parent); |