diff options
author | Fam Zheng <famz@redhat.com> | 2013-11-13 18:29:44 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-11-29 13:40:36 +0100 |
commit | 21b568350861a2c6eedfef95b70f88faf2fbd32a (patch) | |
tree | 67a77d713748969e31bc11e4ea682bc8558aa0a3 /block | |
parent | e4654d2d9406016d6e4e296ba8db3d118caf9ff6 (diff) | |
download | qemu-21b568350861a2c6eedfef95b70f88faf2fbd32a.zip qemu-21b568350861a2c6eedfef95b70f88faf2fbd32a.tar.gz qemu-21b568350861a2c6eedfef95b70f88faf2fbd32a.tar.bz2 |
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 'block')
-rw-r--r-- | block/qapi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/qapi.c b/block/qapi.c index 6b0cdcf..a32cb79 100644 --- a/block/qapi.c +++ b/block/qapi.c @@ -204,6 +204,11 @@ void bdrv_query_info(BlockDriverState *bs, info->io_status = bs->iostatus; } + if (!QLIST_EMPTY(&bs->dirty_bitmaps)) { + info->has_dirty_bitmaps = true; + info->dirty_bitmaps = bdrv_query_dirty_bitmaps(bs); + } + if (bs->drv) { info->has_inserted = true; info->inserted = g_malloc0(sizeof(*info->inserted)); |