All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alano Song <alanosong@gmail.com>
To: qemu-devel@nongnu.org
Cc: dave@treblig.org, marcandre.lureau@gmail.com,
	philmd@oss.qualcomm.com, armbru@redhat.com, laurent@vivier.eu,
	atar4qemu@gmail.com, zhao1.liu@intel.com,
	marcandre.lureau@redhat.com
Subject: [PATCH v4 0/1] monitor: Refine 'info tlb' command
Date: Mon,  7 Sep 2026 21:41:14 +0800	[thread overview]
Message-ID: <20260907134115.15193-1-AlanoSong@gmail.com> (raw)

(Resending this patch to qemu-devel as the previous
two attempts received the following error:

rcpt handle timeout,last handle info:
Host nongnu.org(209.51.188.92) command RCPT TO
respond timeout or disconnected.

This time I am trying with my gmail account.
Apologies if you receive this more than once.)

======

When booting an i386 target, the 'info tlb' command
may walk the entire page table hierarchy and emit
an enormous amount of output. It will take dozens of
minutes to print all the info.
And the same situation also occurred on sparc32 and
m68k targets.
    
So this change do the following:
1) Add a address range argument to help user control
   the number of output items.
2) Add warning note in help message that such address
   range argument only supported on target i386,
   sparc32 and m68k.
3) Print ignore warning when user add such address
   range argument on other targets (sh4, sparc64,
   ppc and xtensa). Those targets only print limited
   tlb info.

V3: https://lore.kernel.org/qemu-devel/20260818132519.186010-1-AlanoSong@163.com/
V2: https://lore.kernel.org/qemu-devel/20260619125602.17077-1-AlanoSong@163.com/
V1: https://lore.kernel.org/qemu-devel/20260524124129.174254-1-AlanoSong@163.com/

Alano Song (1):
  monitor: Refine 'info tlb' command

 hmp-commands-info.hx      | 17 ++++++--
 target/i386/monitor.c     | 92 ++++++++++++++++++++++++++++-----------
 target/m68k/cpu.h         |  2 +-
 target/m68k/helper.c      | 55 +++++++++++++++--------
 target/m68k/monitor.c     | 15 ++++++-
 target/ppc/monitor.c      |  6 +++
 target/sh4/monitor.c      |  5 +++
 target/sparc/cpu.h        |  3 ++
 target/sparc/mmu_helper.c | 40 +++++++++++++----
 target/sparc/monitor.c    | 23 ++++++++++
 target/xtensa/monitor.c   |  6 +++
 11 files changed, 206 insertions(+), 58 deletions(-)

-- 
2.43.0



             reply	other threads:[~2026-09-07 15:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-07 13:41 Alano Song [this message]
2026-09-07 13:41 ` [PATCH v4 1/1] monitor: Refine 'info tlb' command Alano Song
2026-09-08 12:22   ` Markus Armbruster

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=20260907134115.15193-1-AlanoSong@gmail.com \
    --to=alanosong@gmail.com \
    --cc=armbru@redhat.com \
    --cc=atar4qemu@gmail.com \
    --cc=dave@treblig.org \
    --cc=laurent@vivier.eu \
    --cc=marcandre.lureau@gmail.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=philmd@oss.qualcomm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=zhao1.liu@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.