]> Git Repo - qemu.git/commit
block/block-copy: limit copy_range_size to 16 MiB
authorVladimir Sementsov-Ogievskiy <[email protected]>
Tue, 22 Oct 2019 11:18:01 +0000 (14:18 +0300)
committerMax Reitz <[email protected]>
Mon, 28 Oct 2019 10:22:31 +0000 (11:22 +0100)
commitb3b7036afbf564268ad7edc10fb28501af0709e9
tree5e94ce5bea9282084b1fc6dfbbc7ae614c66f5b1
parent3816edd2cb8391a782bde365d7f14705fdb2834d
block/block-copy: limit copy_range_size to 16 MiB

Large copy range may imply memory allocation and large io effort, so
using 2G copy range request may be bad idea. Let's limit it to 16 MiB.
It also helps the following patch to refactor copy-with-offload
fallback to copy-with-bounce-buffer.

Note, that total memory usage of backup is still not limited, it will
be fixed in further commit.

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Message-id: 20191022111805[email protected]
Signed-off-by: Max Reitz <[email protected]>
block/block-copy.c
This page took 0.021877 seconds and 4 git commands to generate.