diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-03-10 16:58:35 +0000 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-19 15:17:23 +0200 |
commit | b9f9be88385e9ab51d4163bfd66f015f14f56286 (patch) | |
tree | 215a9a328e7d53716f6cc01712f15dcabb329c75 | |
parent | 4200872b37ee59b5432d010becaabf84709798c5 (diff) | |
download | hqemu-b9f9be88385e9ab51d4163bfd66f015f14f56286.zip hqemu-b9f9be88385e9ab51d4163bfd66f015f14f56286.tar.gz |
memory: print aliased IO ranges in info mtree
Print also I/O ports behind bridges and other aliases.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r-- | memory.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1621,6 +1621,13 @@ void mtree_info(fprintf_function mon_printf, void *f) mon_printf(f, "memory\n"); mtree_print_mr(mon_printf, f, address_space_memory.root, 0, 0, &ml_head); + if (address_space_io.root && + !QTAILQ_EMPTY(&address_space_io.root->subregions)) { + mon_printf(f, "I/O\n"); + mtree_print_mr(mon_printf, f, address_space_io.root, 0, 0, &ml_head); + } + + mon_printf(f, "aliases\n"); /* print aliased regions */ QTAILQ_FOREACH(ml, &ml_head, queue) { if (!ml->printed) { @@ -1632,11 +1639,4 @@ void mtree_info(fprintf_function mon_printf, void *f) QTAILQ_FOREACH_SAFE(ml, &ml_head, queue, ml2) { g_free(ml); } - - if (address_space_io.root && - !QTAILQ_EMPTY(&address_space_io.root->subregions)) { - QTAILQ_INIT(&ml_head); - mon_printf(f, "I/O\n"); - mtree_print_mr(mon_printf, f, address_space_io.root, 0, 0, &ml_head); - } } |