This is the third part of copy offloading work. The first patches are fixes and improvements in preparation for enabling mirror job. The last patch does a similar change to the backup patch: it inserts a blk_aio_copy_range call before the usual bounce buffer code in mirror_iteration.
Fam Zheng (6): file-posix: Fix EINTR handling block: Check if block drivers can do copy offloading block-backend: Refactor AIO emulation block-backend: Add blk_aio_copy_range block: Add backing passthrough implementations for copy_range mirror: Use copy offloading block.c | 12 ++ block/block-backend.c | 247 +++++++++++++++++++++++---------- block/file-posix.c | 29 ++-- block/io.c | 27 ++++ block/iscsi.c | 8 ++ block/mirror.c | 71 +++++++++- block/qcow2.c | 11 ++ block/raw-format.c | 6 + block/trace-events | 1 + include/block/block_int.h | 26 ++++ include/sysemu/block-backend.h | 4 + 11 files changed, 354 insertions(+), 88 deletions(-) -- 2.17.0