OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b474ba
)
memory: Do not print empty PIO root
author
Jan Kiszka
<jan.kiszka@siemens.com>
Tue, 27 Sep 2011 13:00:38 +0000
(15:00 +0200)
committer
Avi Kivity
<avi@redhat.com>
Sun, 2 Oct 2011 14:27:14 +0000
(16:27 +0200)
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
memory.c
patch
|
blob
|
history
diff --git
a/memory.c
b/memory.c
index
eae67be
..
19f1d36
100644
(file)
--- a/
memory.c
+++ b/
memory.c
@@
-1360,7
+1360,10
@@
void mtree_info(fprintf_function mon_printf, void *f)
g_free(ml2);
}
- QTAILQ_INIT(&ml_head);
- mon_printf(f, "I/O\n");
- mtree_print_mr(mon_printf, f, address_space_io.root, 0, 0, &ml_head);
+ 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);
+ }
}