Skip to content

Dirty bitmap changes for migration/persistence work

John Snow qemu-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest10 patches 3 repliesIn review
  2. v910 patches 1 replySuperseded
  3. v810 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v710 patches3 repliesSuperseded
v610 patches6 repliesSuperseded

v7 from the cover letter

===

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10block: Hide HBitmap in block dirty bitmap interfaceblock/backup.c block/dirty-bitmap.c block/mirror.c +2 more+60 -250 replies
2/10HBitmap: Introduce "meta" bitmap to track bit changesinclude/qemu/hbitmap.h util/hbitmap.c+75 -150 replies
3/10tests: Add test code for meta bitmaptests/test-hbitmap.c+116 -00 replies
4/10block: Support meta dirty bitmapblock/dirty-bitmap.c include/block/dirty-bitmap.h+61 -00 replies
5/10block: Add two dirty bitmap gettersblock/dirty-bitmap.c include/block/dirty-bitmap.h+12 -00 replies
6/10block: Assert that bdrv_release_dirty_bitmap succeededblock/dirty-bitmap.c+3 -00 replies
7/10hbitmap: serializationinclude/qemu/hbitmap.h util/hbitmap.c+216 -02 replies
8/10block: BdrvDirtyBitmap serialization interfaceblock/dirty-bitmap.c include/block/dirty-bitmap.h+51 -00 replies
9/10tests: Add test code for hbitmap serializationtests/test-hbitmap.c+156 -00 replies
10/10block: More operations for meta dirty bitmapblock/dirty-bitmap.c include/block/dirty-bitmap.h+22 -00 replies

Reviews trailers per patch

8 of 10 patches have a Reviewed-by or Acked-by.

PatchMax ReitzJohn Snow
1/10R-b
2/10R-b
3/10R-b R-b
4/10R-b
5/10R-b R-b
6/10R-b
7/10
8/10R-b R-b
9/10
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [Qemu-devel] [PATCH v10 00/10] Dirty bitmap changes for migration/persistence work

Key:
[----] : patches are identical
[####] : number of functional differences between upstream/downstream patch [down] : patch is downstream-only
The flags [FC] indicate (F)unctional and (C)ontextual differences, respectively

001/10:[----] [--] 'block: Hide HBitmap in block dirty bitmap interface' 002/10:[----] [--] 'HBitmap: Introduce "meta" bitmap to track bit changes' 003/10:[----] [--] 'tests: Add test code for meta bitmap' 004/10:[----] [--] 'block: Support meta dirty bitmap' 005/10:[----] [--] 'block: Add two dirty bitmap getters' 006/10:[----] [--] 'block: Assert that bdrv_release_dirty_bitmap succeeded' 007/10:[----] [--] 'hbitmap: serialization'
008/10:[----] [--] 'block: BdrvDirtyBitmap serialization interface' 009/10:[0005] [FC] 'tests: Add test code for hbitmap serialization' 010/10:[----] [--] 'block: More operations for meta dirty bitmap'

===
v10: Now with less bits
===

09: Fixed tests to work correctly on 32bit machines, Thanks Max.

===
v9: Wow, it's been a while.
===

07: Replaced size_t by uint64_t (Fixes 32bit build) 09: Fixed serialization tests for BE machines

===
v8: Hello, is it v8 you're looking for?
===

01: Rebase conflict over int64_t header for bdrv_reset_dirty_bitmap. 04: Revised sector math to make literally any sense.
08: Rebase conflict over int64_t header for bdrv_reset_dirty_bitmap.

===
v7:
===

02: Fix rebase mishap.
04: Slight loop adjustment.
09: Fix constant on 32bit machines.

===
v6: Rebase. Stole series from Fam.
===

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-v10:
https://github.com/jnsnow/qemu/releases/tag/meta-bitmap-v10

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         | 272 +++++++++++++++++++++++++++++++++++++++++++
 util/hbitmap.c               | 206 +++++++++++++++++++++++++++++---
 8 files changed, 772 insertions(+), 40 deletions(-)
Signature · 1 line
2.7.4