ide: Switch to byte-based aio block access
authorEric Blake <eblake@redhat.com>
Fri, 6 May 2016 16:26:31 +0000 (10:26 -0600)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 May 2016 13:22:08 +0000 (15:22 +0200)
commitd4f510eb3f56d30dd1312fe902138c430db2b361
treefd69394707f802d8c40961a0740ac0a10a3a90bf
parent60cb2fa7eb5431d8996589ebc5dde865c602d54b
ide: Switch to byte-based aio block access

Sector-based blk_aio_readv() and blk_aio_writev() should die; switch
to byte-based blk_aio_preadv() and blk_aio_pwritev() instead.

The patch had to touch multiple files at once, because dma_blk_io()
takes pointers to the functions, and ide_issue_trim() piggybacks on
the same interface (while ignoring offset under the hood).

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
dma-helpers.c
hw/ide/core.c
hw/ide/internal.h
hw/ide/macio.c
include/sysemu/dma.h