qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/2] block: fix libvirt snapshot with existing bitmaps
@ 2016-06-14 17:08 Vladimir Sementsov-Ogievskiy
  2016-06-14 17:08 ` [Qemu-devel] [PATCH 1/2] hbitmap: add 'pos < size' asserts Vladimir Sementsov-Ogievskiy
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2016-06-14 17:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: den, vsementsov, kwolf, mreitz

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(+)

-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-06-15 15:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-14 17:08 [Qemu-devel] [PATCH v2 0/2] block: fix libvirt snapshot with existing bitmaps Vladimir Sementsov-Ogievskiy
2016-06-14 17:08 ` [Qemu-devel] [PATCH 1/2] hbitmap: add 'pos < size' asserts Vladimir Sementsov-Ogievskiy
2016-06-14 17:08 ` [Qemu-devel] [PATCH 2/2] block: fix libvirt snapshot with existing bitmaps Vladimir Sementsov-Ogievskiy
2016-06-14 21:33   ` Eric Blake
2016-06-15 13:08     ` Vladimir Sementsov-Ogievskiy
2016-06-15 15:29       ` Max Reitz
2016-06-14 18:09 ` [Qemu-devel] [PATCH v2 0/2] " Max Reitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).