Skip to content

Further bitmaps improvements

Vladimir Sementsov-Ogievskiy qemu-devel 4 versions – Applied

Status from this message: Thanks, applied to my bitmaps tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest10 patches 18 repliesApplied
  2. v310 patches 28 repliesSuperseded
  3. v210 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v110 patches6 repliesSuperseded

Changes in v4 from the cover letter

01-04: add Max's r-b
05: switch test_hbitmap_next_zero_check_range args to int64_t too 06: fix s/UINT64_MAX/INT64_MAX/ in comment to hbitmap_next_dirty
s/firt_dirty_off/first_dirty_off/
Context changed due to 05 change, but I keep Max's r-b
07: simplify parameter check in hbitmap_next_dirty_area
drop initialization in hbitmap_sparse_merge
add Max's r-b
08: commit message tweak
refactor converted flag to separated converted_to_be and can_add do not convert to be automatically in nbd_extent_array_add check uint32 overflow in nbd_extent_array_add
10: drop extra check from store_bitmap_data, add Max's r-b

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/10hbitmap: assert that we don't create bitmap larger than INT64_MAXutil/hbitmap.c+2 -01 reply
2/10hbitmap: move hbitmap_iter_next_word to hbitmap.cinclude/qemu/hbitmap.h util/hbitmap.c+29 -300 replies
3/10hbitmap: unpublish hbitmap_iter_skip_wordsinclude/qemu/hbitmap.h util/hbitmap.c+1 -80 replies
4/10hbitmap: drop meta bitmaps as they are unusedinclude/qemu/hbitmap.h tests/test-hbitmap.c util/hbitmap.c+0 -1520 replies
5/10block/dirty-bitmap: switch _next_dirty_area and _next_zero to int64_tblock/dirty-bitmap.c include/block/dirty-bitmap.h include/qemu/hbitmap.h +3 more+36 -341 reply
6/10block/dirty-bitmap: add _next_dirty APIblock/dirty-bitmap.c include/block/dirty-bitmap.h include/qemu/hbitmap.h +2 more+126 -850 replies
7/10block/dirty-bitmap: improve _next_dirty_area APIblock/dirty-bitmap.c include/block/dirty-bitmap.h include/qemu/hbitmap.h +2 more+75 -460 replies
8/10nbd/server: introduce NBDExtentArraynbd/server.c+118 -924 replies
9/10nbd/server: use bdrv_dirty_bitmap_next_dirty_areanbd/server.c+19 -400 replies
10/10block/qcow2-bitmap: use bdrv_dirty_bitmap_next_dirtyblock/qcow2-bitmap.c+5 -100 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchMax ReitzEric Blake
1/10R-b R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

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

Read the v4 thread

Cover letter [PATCH v4 00/10] Further bitmaps improvements

Hi!

The main feature here is improvement of _next_dirty_area API, which I'm going to use then for backup / block-copy.

Somehow, I thought that it was merged, but seems I even forgot to send v4.

v4:
01-04: add Max's r-b
05: switch test_hbitmap_next_zero_check_range args to int64_t too 06: fix s/UINT64_MAX/INT64_MAX/ in comment to hbitmap_next_dirty
s/firt_dirty_off/first_dirty_off/
Context changed due to 05 change, but I keep Max's r-b
07: simplify parameter check in hbitmap_next_dirty_area
drop initialization in hbitmap_sparse_merge
add Max's r-b
08: commit message tweak
refactor converted flag to separated converted_to_be and can_add do not convert to be automatically in nbd_extent_array_add check uint32 overflow in nbd_extent_array_add
10: drop extra check from store_bitmap_data, add Max's r-b

Vladimir Sementsov-Ogievskiy (10):
hbitmap: assert that we don't create bitmap larger than INT64_MAX
hbitmap: move hbitmap_iter_next_word to hbitmap.c
hbitmap: unpublish hbitmap_iter_skip_words
hbitmap: drop meta bitmaps as they are unused block/dirty-bitmap: switch _next_dirty_area and _next_zero to int64_t block/dirty-bitmap: add _next_dirty API block/dirty-bitmap: improve _next_dirty_area API nbd/server: introduce NBDExtentArray
nbd/server: use bdrv_dirty_bitmap_next_dirty_area block/qcow2-bitmap: use bdrv_dirty_bitmap_next_dirty

 include/block/dirty-bitmap.h |   9 +-
 include/qemu/hbitmap.h       |  97 +++--------
 block/dirty-bitmap.c         |  16 +-
 block/qcow2-bitmap.c         |  15 +-
 nbd/server.c                 | 251 ++++++++++++++--------------
 tests/test-hbitmap.c         | 314 +++++++++++++----------------------
 util/hbitmap.c               | 134 +++++++++------
 7 files changed, 375 insertions(+), 461 deletions(-)
Signature · 1 line
2.21.0