Skip to content

target/monitor: Cleanup around hmp_info_tlb()

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21host/atomic128: Include missing 'qemu/atomic.h' headerhost/include/generic/host/atomic128-cas.h host/include/generic/host/atomic128-ldst.h+4 -02 replies
2/21hw/core: Remove check on NEED_CPU_H in tcg-cpu-ops.hinclude/hw/core/tcg-cpu-ops.h+0 -21 reply
3/21target/i386: Move APIC related code to cpu-apic.ctarget/i386/cpu-apic.c target/i386/cpu-sysemu.c target/i386/meson.build +1 more+113 -1023 replies
4/21target/i386: Extract x86_dump_mmu() from hmp_info_tlb()target/i386/cpu.h target/i386/meson.build target/i386/mmu.c +1 more+239 -2151 reply
5/21target/m68k: Replace qemu_printf() by monitor_printf() in monitortarget/m68k/cpu.h target/m68k/helper.c target/m68k/monitor.c+67 -658 replies
6/21target/m68k: Have dump_ttr() take a @description argumenttarget/m68k/helper.c+6 -91 reply
7/21target/m68k: Move MMU monitor commands from helper.c to monitor.ctarget/m68k/cpu.h target/m68k/helper.c target/m68k/monitor.c+223 -2251 reply
8/21target/microblaze: Prefix MMU API with 'mb_'target/microblaze/cpu.c target/microblaze/helper.c target/microblaze/mmu.c +2 more+17 -171 reply
9/21target/mips: Prefix MMU API with 'mips_'target/mips/cpu.c target/mips/tcg/sysemu/tlb_helper.c target/mips/tcg/tcg-internal.h+3 -30 replies
10/21target/nios2: Prefix MMU API with 'nios2_'target/nios2/cpu.c target/nios2/helper.c target/nios2/mmu.c +1 more+11 -130 replies
11/21target/nios2: Move monitor commands to monitor.ctarget/nios2/cpu.h target/nios2/mmu.c target/nios2/monitor.c+28 -290 replies
12/21target/nios2: Replace qemu_printf() by monitor_printf() in monitortarget/nios2/monitor.c+15 -161 reply
13/21target/ppc: Replace qemu_printf() by monitor_printf() in monitortarget/ppc/cpu.h target/ppc/mmu_common.c target/ppc/ppc-qmp-cmds.c+77 -741 reply
14/21target/sh4: Extract sh4_dump_mmu() from hmp_info_tlb()target/sh4/cpu.h target/sh4/monitor.c+17 -70 replies
15/21target/sparc: Fix string format errors when DEBUG_MMU is definedtarget/sparc/ldst_helper.c+4 -40 replies
16/21target/sparc: Replace qemu_printf() by monitor_printf() in monitortarget/sparc/cpu.h target/sparc/ldst_helper.c target/sparc/mmu_helper.c +1 more+62 -622 replies
17/21target/xtensa: Prefix MMU API with 'xtensa_'target/xtensa/cpu.c target/xtensa/cpu.h target/xtensa/mmu_helper.c +1 more+27 -220 replies
18/21target/xtensa: Extract MMU API to new mmu.c/mmu.h filestarget/xtensa/cpu.h target/xtensa/meson.build target/xtensa/mmu.c +2 more+991 -9181 reply
19/21target/xtensa: Simplify dump_mpu() and dump_tlb()target/xtensa/mmu_helper.c+9 -70 replies
20/21target/xtensa: Move monitor commands to monitor.ctarget/xtensa/mmu_helper.c target/xtensa/monitor.c+143 -1410 replies
21/21target/xtensa: Replace qemu_printf() by monitor_printf() in monitortarget/xtensa/mmu.h target/xtensa/monitor.c+61 -581 reply

Reviews trailers per patch

11 of 21 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonEdgar E. IglesiasDr. David Alan GilbertMarkus ArmbrusterZhao Liu
1/21
2/21R-b
3/21R-b R-b
4/21R-b
5/21R-b R-b R-b
6/21R-b
7/21R-b
8/21R-b
9/21
10/21
11/21
12/21R-b
13/21R-b
14/21
15/21
16/21R-b
17/21
18/21
19/21
20/21
21/21R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH-for-9.1 00/21] target/monitor: Cleanup around hmp_info_tlb()

Hi,

In [*] I posted preliminary steps to unify hmp_info_tlb() and hmp_info_mem() after making them per-CPU handler, rather than target-specific method (which break single binary). Since there is no rush and we need to figure the usefulness of 'info tlb/mem' and what we want to do with it, I dropped the series but salvaged these cleanup patches.

Regards,

Phil.

[*] https://lore.kernel.org/qemu-devel/[email protected]/

Philippe Mathieu-Daudé (21):
host/atomic128: Include missing 'qemu/atomic.h' header hw/core: Remove check on NEED_CPU_H in tcg-cpu-ops.h target/i386: Move APIC related code to cpu-apic.c target/i386: Extract x86_dump_mmu() from hmp_info_tlb() target/m68k: Replace qemu_printf() by monitor_printf() in monitor target/m68k: Have dump_ttr() take a @description argument target/m68k: Move MMU monitor commands from helper.c to monitor.c target/microblaze: Prefix MMU API with 'mb_' target/mips: Prefix MMU API with 'mips_'
target/nios2: Prefix MMU API with 'nios2_'
target/nios2: Move monitor commands to monitor.c target/nios2: Replace qemu_printf() by monitor_printf() in monitor target/ppc: Replace qemu_printf() by monitor_printf() in monitor target/sh4: Extract sh4_dump_mmu() from hmp_info_tlb() target/sparc: Fix string format errors when DEBUG_MMU is defined target/sparc: Replace qemu_printf() by monitor_printf() in monitor target/xtensa: Prefix MMU API with 'xtensa_' target/xtensa: Extract MMU API to new mmu.c/mmu.h files target/xtensa: Simplify dump_mpu() and dump_tlb() target/xtensa: Move monitor commands to monitor.c target/xtensa: Replace qemu_printf() by monitor_printf() in monitor

 host/include/generic/host/atomic128-cas.h  |    2 +
 host/include/generic/host/atomic128-ldst.h |    2 +
 include/hw/core/tcg-cpu-ops.h              |    2 -
 target/i386/cpu.h                          |    7 +
 target/m68k/cpu.h                          |    3 +-
 target/microblaze/mmu.h                    |   10 +-
 target/mips/tcg/tcg-internal.h             |    2 +-
 target/nios2/cpu.h                         |    2 +-
 target/nios2/mmu.h                         |   11 +-
 target/ppc/cpu.h                           |    2 +-
 target/sh4/cpu.h                           |    2 +
 target/sparc/cpu.h                         |    2 +-
 target/xtensa/cpu.h                        |   32 +-
 target/xtensa/mmu.h                        |   95 ++
 target/i386/cpu-apic.c                     |  112 +++
 target/i386/cpu-sysemu.c                   |   77 --
 target/i386/mmu.c                          |  231 +++++
 target/i386/monitor.c                      |  240 -----
 target/m68k/helper.c                       |  223 -----
 target/m68k/monitor.c                      |  225 ++++-
 target/microblaze/cpu.c                    |    2 +-
 target/microblaze/helper.c                 |    4 +-
 target/microblaze/mmu.c                    |   14 +-
 target/microblaze/op_helper.c              |    4 +-
 target/mips/cpu.c                          |    2 +-
 target/mips/tcg/sysemu/tlb_helper.c        |    2 +-
 target/nios2/cpu.c                         |    2 +-
 target/nios2/helper.c                      |    4 +-
 target/nios2/mmu.c                         |   34 +-
 target/nios2/monitor.c                     |   27 +-
 target/ppc/mmu_common.c                    |  147 +--
 target/ppc/ppc-qmp-cmds.c                  |    2 +-
 target/sh4/monitor.c                       |   22 +-
 target/sparc/ldst_helper.c                 |   26 +-
 target/sparc/mmu_helper.c                  |  102 +-
 target/sparc/monitor.c                     |    2 +-
 target/xtensa/cpu.c                        |    2 +-
 target/xtensa/mmu.c                        |  889 +++++++++++++++++
 target/xtensa/mmu_helper.c                 | 1037 +-------------------
 target/xtensa/monitor.c                    |  149 ++-
 target/i386/meson.build                    |    2 +
 target/xtensa/meson.build                  |    1 +
 42 files changed, 1943 insertions(+), 1815 deletions(-)
 create mode 100644 target/xtensa/mmu.h
 create mode 100644 target/i386/cpu-apic.c
 create mode 100644 target/i386/mmu.c
 create mode 100644 target/xtensa/mmu.c
Signature · 1 line
2.41.0