scsi-disk: introduce dma_readv and dma_writev
commitfcaafb1001b9c42817714dd3b2aadcfdb997b53d
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 May 2016 08:13:00 +0000 (10 10:13 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 29 May 2016 07:11:11 +0000 (29 09:11 +0200)
tree59bc7d013e276f03bb01f2a29a28a901343162b4
parent993935f315b75436f7664debdd1bf68622aabc2b
scsi-disk: introduce dma_readv and dma_writev

These are replacements for blk_aio_readv and blk_aio_writev that allow
customization of the data path.  They reuse the DMA helpers' DMAIOFunc
callback type, so that the same function can be used in either the
QEMUSGList or the bounce-buffered case.

This customization will be needed in the next patch to do zero-copy
SG_IO on scsi-block.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-disk.c