v7: 02: Fix rebase mishap. 04: Slight loop adjustment. 09: Fix constant on 32bit machines.
v6: Rebase. 02: Added documentation changes as suggested by Max. v5: Rebase: first 5 patches from last revision are already merged. Addressed Max's comments: 01: - "block.c" -> "block/dirty-bitmap.c" in commit message. - "an BdrvDirtyBitmapIter" -> "an BdrvDirtyBitmapIter" in code comment. - hbitmap_next => next_dirty as variable name. - bdrv_dirty_iter_free()/bdrv_dirty_iter_new() pairs => bdrv_set_dirty_iter. 02: Move the assert fix into 01. 04: Truncate the meta bitmap (done by hbitmap_truncate). 06: Add Max's r-b. 07: I left the memcpy vs cpu_to_le32/64w as is to pick up Max's r-b. That could be improved on top if wanted. 10: Add Max's r-b. ________________________________________________________________________________ For convenience, this branch is available at: https://github.com/jnsnow/qemu.git branch meta-bitmap https://github.com/jnsnow/qemu/tree/meta-bitmap This version is tagged meta-bitmap-v7: https://github.com/jnsnow/qemu/releases/tag/meta-bitmap-v7 Fam Zheng (8): block: Hide HBitmap in block dirty bitmap interface HBitmap: Introduce "meta" bitmap to track bit changes tests: Add test code for meta bitmap block: Support meta dirty bitmap block: Add two dirty bitmap getters block: Assert that bdrv_release_dirty_bitmap succeeded tests: Add test code for hbitmap serialization block: More operations for meta dirty bitmap Vladimir Sementsov-Ogievskiy (2): hbitmap: serialization block: BdrvDirtyBitmap serialization interface block/backup.c | 14 ++- block/dirty-bitmap.c | 160 ++++++++++++++++++++++++++- block/mirror.c | 24 ++-- include/block/dirty-bitmap.h | 35 +++++- include/qemu/hbitmap.h | 100 +++++++++++++++++ include/qemu/typedefs.h | 1 + tests/test-hbitmap.c | 255 +++++++++++++++++++++++++++++++++++++++++++ util/hbitmap.c | 206 +++++++++++++++++++++++++++++++--- 8 files changed, 755 insertions(+), 40 deletions(-) -- 2.7.4