summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2013-11-13 18:29:44 +0800
committerKevin Wolf <kwolf@redhat.com>2013-11-29 13:40:36 +0100
commit21b568350861a2c6eedfef95b70f88faf2fbd32a (patch)
tree67a77d713748969e31bc11e4ea682bc8558aa0a3 /include
parente4654d2d9406016d6e4e296ba8db3d118caf9ff6 (diff)
downloadqemu-21b568350861a2c6eedfef95b70f88faf2fbd32a.tar.gz
qemu-21b568350861a2c6eedfef95b70f88faf2fbd32a.tar.bz2
qemu-21b568350861a2c6eedfef95b70f88faf2fbd32a.zip
qapi: Change BlockDirtyInfo to list
We have multiple dirty bitmaps in BDS now, switch QAPI to allow query it (BlockInfo.dirty_bitmaps), and also drop old BlockInfo.dirty. Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/block/block.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 33ae9a9b5a..b6bdae8dcc 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -422,6 +422,7 @@ struct HBitmapIter;
typedef struct BdrvDirtyBitmap BdrvDirtyBitmap;
BdrvDirtyBitmap *bdrv_create_dirty_bitmap(BlockDriverState *bs, int granularity);
void bdrv_release_dirty_bitmap(BlockDriverState *bs, BdrvDirtyBitmap *bitmap);
+BlockDirtyInfoList *bdrv_query_dirty_bitmaps(BlockDriverState *bs);
int bdrv_get_dirty(BlockDriverState *bs, BdrvDirtyBitmap *bitmap, int64_t sector);
void bdrv_set_dirty(BlockDriverState *bs, int64_t cur_sector, int nr_sectors);
void bdrv_reset_dirty(BlockDriverState *bs, int64_t cur_sector, int nr_sectors);