diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2017-06-28 15:05:25 +0300 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2017-07-11 17:44:59 +0200 |
commit | a3b52535e8a577d9b12887a34183fe9077ea24d8 (patch) | |
tree | b97d4f9dfd789437e388849fca661d54196db0b5 /block | |
parent | eb738bb50f216db5edbbf0a59c488cd685ef9e61 (diff) | |
download | qemu-a3b52535e8a577d9b12887a34183fe9077ea24d8.zip qemu-a3b52535e8a577d9b12887a34183fe9077ea24d8.tar.gz qemu-a3b52535e8a577d9b12887a34183fe9077ea24d8.tar.bz2 |
qmp: add x-debug-block-dirty-bitmap-sha256
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20170628120530.31251-26-vsementsov@virtuozzo.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/dirty-bitmap.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/dirty-bitmap.c b/block/dirty-bitmap.c index d146941..5fcf917 100644 --- a/block/dirty-bitmap.c +++ b/block/dirty-bitmap.c @@ -725,3 +725,8 @@ BdrvDirtyBitmap *bdrv_dirty_bitmap_next(BlockDriverState *bs, return bitmap == NULL ? QLIST_FIRST(&bs->dirty_bitmaps) : QLIST_NEXT(bitmap, list); } + +char *bdrv_dirty_bitmap_sha256(const BdrvDirtyBitmap *bitmap, Error **errp) +{ + return hbitmap_sha256(bitmap->bitmap, errp); +} |