Previously live commit of active block device is not supported, this series implements it and updates corresponding qemu-iotests cases.
Please see commit messages for implementation details. v3: [addressing Stefan's comments] - Sleep in dirty map setup loop. - Handle error of bdrv_co_is_allocated_above(). - Fix order of dirty map reset and commit_populate(). - Use bdrv_co_flush(). - Put s->overlay check in one if block. - Don't interleave orig_overlay_flags and orig_base_flags saving stanzas. v2: report ready when all blocks commited for the first time, leave it to the user to complete the job (upon user's complete command, also commit writes since ready and flushes before reporting completion) Fam Zheng (2): block: allow live commit of active image qemu-iotests: update test cases for commit active block.c | 102 +++++++---------------- block/commit.c | 215 ++++++++++++++++++++++++++++++------------------- include/block/block.h | 5 +- tests/qemu-iotests/040 | 73 +++++++---------- 4 files changed, 195 insertions(+), 200 deletions(-) -- 1.8.3.1