Skip to content

block: fix libvirt snapshot with existing bitmaps

Vladimir Sementsov-Ogievskiy qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 4 repliesIn review

Changes in v2 from the cover letter

- additional patch with asserts for hbitmap. As BdrvDirtyBitmap is only an interlayer here, I decided to plase asserts into HBitmap public functions.
- add comment
- from Max's comments:
- assert after if block
- bitmap->size instead of bdrv_nb_sectors. It is not beautiful, but with bdrv_nb_sectors we have to handle error code here, which would be worse I think.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hbitmap: add 'pos < size' assertsutil/hbitmap.c+3 -00 replies
2/2block: fix libvirt snapshot with existing bitmapsblock/dirty-bitmap.c+14 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] block: fix libvirt snapshot with existing bitmaps

v2:
- additional patch with asserts for hbitmap. As BdrvDirtyBitmap is only an interlayer here, I decided to plase asserts into HBitmap public functions.
- add comment
- from Max's comments:
- assert after if block
- bitmap->size instead of bdrv_nb_sectors. It is not beautiful, but with bdrv_nb_sectors we have to handle error code here, which would be worse I think.

Vladimir Sementsov-Ogievskiy (2):
hbitmap: add 'pos < size' asserts
block: fix libvirt snapshot with existing bitmaps

 block/dirty-bitmap.c | 14 ++++++++++++++
 util/hbitmap.c       |  3 +++
 2 files changed, 17 insertions(+)
Signature · 1 line
1.8.3.1