summaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2020-03-11 11:30:01 +0100
committerMax Reitz2020-03-11 12:42:30 +0100
commitdafaf13593de240724a210e72da66f9d162735c3 (patch)
treef5cab9399e367e1ae2dc4e41a5a19adeca9a0140 /backends
parentblock/block-copy: factor out find_conflicting_inflight_req (diff)
downloadqemu-dafaf13593de240724a210e72da66f9d162735c3.tar.gz
qemu-dafaf13593de240724a210e72da66f9d162735c3.tar.xz
qemu-dafaf13593de240724a210e72da66f9d162735c3.zip
block/block-copy: refactor interfaces to use bytes instead of end
We have a lot of "chunk_end - start" invocations, let's switch to bytes/cur_bytes scheme instead. While being here, improve check on block_copy_do_copy parameters to not overflow when calculating nbytes and use int64_t for bytes in block_copy for consistency. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20200311103004.7649-7-vsementsov@virtuozzo.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'backends')
0 files changed, 0 insertions, 0 deletions