]> Git Repo - qemu.git/commitdiff
qmp: Add dirty bitmap status field in query-block
authorJohn Snow <[email protected]>
Fri, 17 Apr 2015 23:50:00 +0000 (19:50 -0400)
committerKevin Wolf <[email protected]>
Tue, 28 Apr 2015 13:36:10 +0000 (15:36 +0200)
Add the "frozen" status booleans, to inform clients
when a bitmap is occupied doing a task.

Signed-off-by: Fam Zheng <[email protected]>
Signed-off-by: John Snow <[email protected]>
Reviewed-by: Max Reitz <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Message-id: 1429314609[email protected]
Signed-off-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block.c
qapi/block-core.json

diff --git a/block.c b/block.c
index b7f1f002f367db10465df890d89db0e788f9b03f..f0157d55cfd8699dcc2f6246ec9e8ab075b204f6 100644 (file)
--- a/block.c
+++ b/block.c
@@ -5699,6 +5699,7 @@ BlockDirtyInfoList *bdrv_query_dirty_bitmaps(BlockDriverState *bs)
         info->granularity = bdrv_dirty_bitmap_granularity(bm);
         info->has_name = !!bm->name;
         info->name = g_strdup(bm->name);
+        info->frozen = bdrv_dirty_bitmap_frozen(bm);
         entry->value = info;
         *plist = entry;
         plist = &entry->next;
index e275dc2c94ca6988bd6d1ff15f04b9ba6f7c15ad..1c17224c77211b76e19d4664a95ce91f8773325f 100644 (file)
 #
 # @granularity: granularity of the dirty bitmap in bytes (since 1.4)
 #
+# @frozen: whether the dirty bitmap is frozen (Since 2.4)
+#
 # Since: 1.3
 ##
 { 'type': 'BlockDirtyInfo',
-  'data': {'*name': 'str', 'count': 'int', 'granularity': 'uint32'} }
+  'data': {'*name': 'str', 'count': 'int', 'granularity': 'uint32',
+           'frozen': 'bool'} }
 
 ##
 # @BlockInfo:
This page took 0.030563 seconds and 4 git commands to generate.