Re: [PATCH] memory: Make 'info mtree' not display disabled regions by default

2020-05-29 Thread Paolo Bonzini
On 29/05/20 16:34, Peter Xu wrote: > On Fri, May 29, 2020 at 02:53:25PM +0200, Philippe Mathieu-Daudé wrote: >> @@ -2920,35 +2916,46 @@ static void mtree_print_mr(const MemoryRegion *mr, >> unsigned int level, >> ml->mr = mr->alias; >> QTAILQ_INSERT_TAIL(alias_print_queue

Re: [PATCH] memory: Make 'info mtree' not display disabled regions by default

2020-05-29 Thread Peter Xu
On Fri, May 29, 2020 at 02:53:25PM +0200, Philippe Mathieu-Daudé wrote: > @@ -2920,35 +2916,46 @@ static void mtree_print_mr(const MemoryRegion *mr, > unsigned int level, > ml->mr = mr->alias; > QTAILQ_INSERT_TAIL(alias_print_queue, ml, mrqueue); > } > -q

[PATCH] memory: Make 'info mtree' not display disabled regions by default

2020-05-29 Thread Philippe Mathieu-Daudé
We might have many disabled memory regions, making the 'info mtree' output too verbose to be useful. Remove the disabled regions in the default output, but allow the monitor user to display them using the '-D' option. Before: (qemu) info mtree memory-region: system -ff