From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Chao Liu <lc00631@tecorigin.com>,
pbonzini@redhat.com, peterx@redhat.com, david@redhat.com,
armbru@redhat.com, balaton@eik.bme.hu
Cc: zhangtj@tecorigin.com, zqz00548@tecorigin.com, qemu-devel@nongnu.org
Subject: Re: [PATCH v6 0/1] Optimizing the print format of the QEMU monitor 'info mtree'
Date: Thu, 1 May 2025 14:35:19 +0200 [thread overview]
Message-ID: <6d17f9a1-67d9-4a97-ae1d-21a78d2592a4@linaro.org> (raw)
In-Reply-To: <cover.1746065388.git.lc00631@tecorigin.com>
Hi Chao,
On 1/5/25 04:24, Chao Liu wrote:
> Hi, all:
>
> Thanks to BALATON, and David for their reviews.
>
> In PATCH v6:
> 1. Replaced the bool type with enum mtree_node_type to improve code readability.
> 2. Modified the output to use only one horizontal dash instead of two, and
> aligned character printing for a cleaner look.
>
> like this:
>
> ```
> $ ./qemu-system-aarch64 -S -monitor stdio -M raspi4b
> (qemu) info mtree
> address-space: memory
> `- 0000000000000000-ffffffffffffffff (prio 0, i/o): system
> |- 0000000000000000-000000007fffffff (prio 0, ram): ram
> ...
> |- 00000000fe000000-00000000ff7fffff (prio 1, i/o): bcm2835-peripherals
> | |- 00000000fe900000-00000000fe907fff (prio -1000, i/o): bcm2835-dbus
> | |- 00000000fe910000-00000000fe917fff (prio -1000, i/o): bcm2835-ave0
> | |- 00000000fe980000-00000000fe990fff (prio 0, i/o): dwc2
> | | |- 00000000fe980000-00000000fe980fff (prio 0, i/o): dwc2-io
> | | `- 00000000fe981000-00000000fe990fff (prio 0, i/o): dwc2-fifo
> | |- 00000000fec00000-00000000fec00fff (prio -1000, i/o): bcm2835-v3d
> | |- 00000000fec11000-00000000fec110ff (prio -1000, i/o): bcm2835-clkisp
> | |- 00000000fee00000-00000000fee000ff (prio -1000, i/o): bcm2835-sdramc
> | `- 00000000fee05000-00000000fee050ff (prio 0, i/o): bcm2835-dma-chan15
> |- 00000000ff800000-00000000ff8000ff (prio 0, i/o): bcm2836-control
> ...
> |- 00000000ff845600-00000000ff8456ff (prio 0, i/o): gic_cpu
> `- 00000000ff846000-00000000ff847fff (prio 0, i/o): gic_vcpu
> ```
Could we keep the address ranges aligned? I.e.:
> |--+ 00000000fe000000-00000000ff7fffff (prio 1, i/o):
bcm2835-peripherals
> | |---- 00000000fe900000-00000000fe907fff (prio -1000, i/o):
bcm2835-dbus
> | |---- 00000000fe910000-00000000fe917fff (prio -1000, i/o):
bcm2835-ave0
> | |--+ 00000000fe980000-00000000fe990fff (prio 0, i/o): dwc2
> | | |- 00000000fe980000-00000000fe980fff (prio 0, i/o): dwc2-io
> | | `- 00000000fe981000-00000000fe990fff (prio 0, i/o): dwc2-fifo
> | |---- 00000000fec00000-00000000fec00fff (prio -1000, i/o):
bcm2835-v3d
> | |---- 00000000fec11000-00000000fec110ff (prio -1000, i/o):
bcm2835-clkisp
> | |---- 00000000fee00000-00000000fee000ff (prio -1000, i/o):
bcm2835-sdramc
> | `---- 00000000fee05000-00000000fee050ff (prio 0, i/o):
bcm2835-dma-chan15
> |------- 00000000ff800000-00000000ff8000ff (prio 0, i/o):
bcm2836-control
next prev parent reply other threads:[~2025-05-01 12:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-01 2:24 [PATCH v6 0/1] Optimizing the print format of the QEMU monitor 'info mtree' Chao Liu
2025-05-01 2:24 ` [PATCH v6 1/1] system: improve visual representation of node hierarchy in 'info mtree' output for qemu monitor Chao Liu
2025-05-01 12:35 ` Philippe Mathieu-Daudé [this message]
2025-05-01 13:49 ` [PATCH v6 0/1] Optimizing the print format of the QEMU monitor 'info mtree' BALATON Zoltan
2025-05-01 17:29 ` Philippe Mathieu-Daudé
2025-05-01 20:12 ` BALATON Zoltan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6d17f9a1-67d9-4a97-ae1d-21a78d2592a4@linaro.org \
--to=philmd@linaro.org \
--cc=armbru@redhat.com \
--cc=balaton@eik.bme.hu \
--cc=david@redhat.com \
--cc=lc00631@tecorigin.com \
--cc=pbonzini@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=zhangtj@tecorigin.com \
--cc=zqz00548@tecorigin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).