[PATCH-for-11.1 v2 0/7] monitor: Have 'info tlb' dump MMU information on monitor

Philippe Mathieu-Daudé posted 7 patches 1 day, 19 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260320165021.39521-1-philmd@linaro.org
Maintainers: Laurent Vivier <laurent@vivier.eu>, Nicholas Piggin <npiggin@gmail.com>, Chinmay Rath <rathc@linux.ibm.com>, Glenn Miles <milesg@linux.ibm.com>, Max Filippov <jcmvbkbc@gmail.com>
target/m68k/cpu.h          |   2 +-
target/ppc/cpu.h           |   2 +-
target/ppc/mmu-hash64.h    |   2 +-
target/xtensa/cpu.h        |   2 +-
target/m68k/helper.c       | 116 +++++++++++++++++++------------------
target/m68k/monitor.c      |   2 +-
target/ppc/mmu-hash64.c    |  10 ++--
target/ppc/mmu_common.c    |  66 ++++++++++-----------
target/ppc/monitor.c       |   2 +-
target/xtensa/mmu_helper.c |  44 +++++++-------
target/xtensa/monitor.c    |   2 +-
11 files changed, 125 insertions(+), 125 deletions(-)
[PATCH-for-11.1 v2 0/7] monitor: Have 'info tlb' dump MMU information on monitor
Posted by Philippe Mathieu-Daudé 1 day, 19 hours ago
Currently 'info tlb' dumps the MMU information on stdout, fix
by using the monitor console instead. Rename the dump_mmu()
functions to avoid name clash on single binary.

Since v1:
- Split Xtensa patch (pm215)
- Update m68k / ppc targets

Philippe Mathieu-Daudé (7):
  target/m68k: Have 'info tlb' dump MMU information on monitor
  target/ppc: Have 'info tlb' dump MMU information on monitor
  target/xtensa: Have 'info tlb' dump MMU information on monitor
  target/xtensa: Display [ID]TLB header within dump_tlb()
  target/m68k: Rename dump_mmu() -> m68k_monitor_dump_mmu()
  target/ppc: Rename dump_mmu() -> ppc_monitor_dump_mmu()
  target/xtensa: Rename dump_mmu() -> xtensa_monitor_dump_mmu()

 target/m68k/cpu.h          |   2 +-
 target/ppc/cpu.h           |   2 +-
 target/ppc/mmu-hash64.h    |   2 +-
 target/xtensa/cpu.h        |   2 +-
 target/m68k/helper.c       | 116 +++++++++++++++++++------------------
 target/m68k/monitor.c      |   2 +-
 target/ppc/mmu-hash64.c    |  10 ++--
 target/ppc/mmu_common.c    |  66 ++++++++++-----------
 target/ppc/monitor.c       |   2 +-
 target/xtensa/mmu_helper.c |  44 +++++++-------
 target/xtensa/monitor.c    |   2 +-
 11 files changed, 125 insertions(+), 125 deletions(-)

-- 
2.53.0


Re: [PATCH-for-11.1 v2 0/7] monitor: Have 'info tlb' dump MMU information on monitor
Posted by Max Filippov 22 hours ago
On Fri, Mar 20, 2026 at 9:50 AM Philippe Mathieu-Daudé
<philmd@linaro.org> wrote:
>
> Currently 'info tlb' dumps the MMU information on stdout, fix

That's not what I observe: I build QEMU from today's master
and run

qemu-system-xtensa -M kc705 -s -S -nographic \
        -chardev socket,id=mon,host=0.0.0.0,port=7777,server=on,wait=off \
        -mon chardev=mon

and `info tlb` in that monitor works as expected:

$ nc 127.0.0.1 7777
QEMU 10.2.90 monitor - type 'help' for more information
(qemu) info tlb
info tlb
ITLB:
Way 5 (128 MB)
       Vaddr       Paddr       ASID  Attr RWX Cache
       ----------  ----------  ----  ---- --- -------
       0xd0000000  0x00000000  0x01  0x07 RWX WB
       0xd8000000  0x00000000  0x01  0x03 RWX Bypass
Way 6 (256 MB)
       Vaddr       Paddr       ASID  Attr RWX Cache
       ----------  ----------  ----  ---- --- -------
       0xe0000000  0xf0000000  0x01  0x07 RWX WB
       0xf0000000  0xf0000000  0x01  0x03 RWX Bypass

DTLB:
Way 5 (128 MB)
       Vaddr       Paddr       ASID  Attr RWX Cache
       ----------  ----------  ----  ---- --- -------
       0xd0000000  0x00000000  0x01  0x07 RWX WB
       0xd8000000  0x00000000  0x01  0x03 RWX Bypass
Way 6 (256 MB)
       Vaddr       Paddr       ASID  Attr RWX Cache
       ----------  ----------  ----  ---- --- -------
       0xe0000000  0xf0000000  0x01  0x07 RWX WB
       0xf0000000  0xf0000000  0x01  0x03 RWX Bypass

> by using the monitor console instead. Rename the dump_mmu()
> functions to avoid name clash on single binary.

-- 
Thanks.
-- Max