diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2017-10-12 16:53:09 +0300 |
---|---|---|
committer | Jeff Cody <jcody@redhat.com> | 2017-12-18 10:54:13 -0500 |
commit | 56207df55ea546f3e72578a5920e68a346440b1a (patch) | |
tree | f3402035ecf937a994f7567663c54408e66939bf /include/block/dirty-bitmap.h | |
parent | 411ad78115ebeb3411cf4b7622784b93dfabe259 (diff) | |
download | qemu-56207df55ea546f3e72578a5920e68a346440b1a.zip qemu-56207df55ea546f3e72578a5920e68a346440b1a.tar.gz qemu-56207df55ea546f3e72578a5920e68a346440b1a.tar.bz2 |
hbitmap: add next_zero function
The function searches for next zero bit.
Also add interface for BdrvDirtyBitmap and unit test.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Message-id: 20171012135313.227864-2-vsementsov@virtuozzo.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'include/block/dirty-bitmap.h')
-rw-r--r-- | include/block/dirty-bitmap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/dirty-bitmap.h b/include/block/dirty-bitmap.h index 3579a75..a591c27 100644 --- a/include/block/dirty-bitmap.h +++ b/include/block/dirty-bitmap.h @@ -91,5 +91,6 @@ bool bdrv_has_changed_persistent_bitmaps(BlockDriverState *bs); BdrvDirtyBitmap *bdrv_dirty_bitmap_next(BlockDriverState *bs, BdrvDirtyBitmap *bitmap); char *bdrv_dirty_bitmap_sha256(const BdrvDirtyBitmap *bitmap, Error **errp); +int64_t bdrv_dirty_bitmap_next_zero(BdrvDirtyBitmap *bitmap, uint64_t start); #endif |