aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2018-12-21 20:09:07 +0300
committerMax Reitz <mreitz@redhat.com>2019-01-31 00:38:19 +0100
commit5d3b4e99463642b226d1a37433d0e4b376162468 (patch)
tree10104806d3367656755bdf1190730f00e151e30e /block
parentb4fbe1f65a4769c09e6bf2d79fc84360f840f40e (diff)
downloadqemu-5d3b4e99463642b226d1a37433d0e4b376162468.zip
qemu-5d3b4e99463642b226d1a37433d0e4b376162468.tar.gz
qemu-5d3b4e99463642b226d1a37433d0e4b376162468.tar.bz2
qapi: add x-debug-query-block-graph
Add a new command, returning block nodes (and their users) graph. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-id: 20181221170909.25584-2-vsementsov@virtuozzo.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block')
-rw-r--r--block/block-backend.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/block/block-backend.c b/block/block-backend.c
index 60d37a0..cf05abd 100644
--- a/block/block-backend.c
+++ b/block/block-backend.c
@@ -2249,3 +2249,8 @@ int coroutine_fn blk_co_copy_range(BlockBackend *blk_in, int64_t off_in,
blk_out->root, off_out,
bytes, read_flags, write_flags);
}
+
+const BdrvChild *blk_root(BlockBackend *blk)
+{
+ return blk->root;
+}