diff options
author | Kevin Wolf | 2016-04-14 16:40:16 +0200 |
---|---|---|
committer | Kevin Wolf | 2016-05-25 19:04:21 +0200 |
commit | 1e98fefd95ff604b48fe3ea71825449c187a7dd7 (patch) | |
tree | 6f78f7fac82b75ec7ee910ae0bca6d818754cfed /include | |
parent | block: Convert block job core to BlockBackend (diff) | |
download | qemu-1e98fefd95ff604b48fe3ea71825449c187a7dd7.tar.gz qemu-1e98fefd95ff604b48fe3ea71825449c187a7dd7.tar.xz qemu-1e98fefd95ff604b48fe3ea71825449c187a7dd7.zip |
block: Make blk_co_preadv/pwritev() public
Also add trace points now that the function can be directly called.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/sysemu/block-backend.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h index 9571726a3a..c04af8ea46 100644 --- a/include/sysemu/block-backend.h +++ b/include/sysemu/block-backend.h @@ -113,6 +113,12 @@ void *blk_get_attached_dev(BlockBackend *blk); void blk_set_dev_ops(BlockBackend *blk, const BlockDevOps *ops, void *opaque); int blk_pread_unthrottled(BlockBackend *blk, int64_t offset, uint8_t *buf, int count); +int coroutine_fn blk_co_preadv(BlockBackend *blk, int64_t offset, + unsigned int bytes, QEMUIOVector *qiov, + BdrvRequestFlags flags); +int coroutine_fn blk_co_pwritev(BlockBackend *blk, int64_t offset, + unsigned int bytes, QEMUIOVector *qiov, + BdrvRequestFlags flags); int blk_pwrite_zeroes(BlockBackend *blk, int64_t offset, int count, BdrvRequestFlags flags); BlockAIOCB *blk_aio_pwrite_zeroes(BlockBackend *blk, int64_t offset, |