At 2026-05-24 20:41:29, [email protected] wrote:
>When booting an i386 guest, the `info tlb` command
>may walk the entire page table hierarchy and emit
>an enormous amount of output (as many as 800+ million
>entries under my test).
>It will take dozens of minutes to print all the info,
>because each monitor print function will holds 'mon_lock'.
>This effectively hangs the qemu monitor, and even leading
>to program exit due to timeout.
>
>So it may be better to show only the first 32 entries
>and the last entry by default.
>
>And if full output is required, the user can redirect
>the output to a file by specifying a file name, e.g.:
>`info tlb xxx.txt`.
>
>Signed-off-by: Alano Song <[email protected]>
>---
> hmp-commands-info.hx  |  10 +-
> target/i386/monitor.c | 230 ++++++++++++++++++++++++++++++++++--------
> 2 files changed, 195 insertions(+), 45 deletions(-)
>


Ping for code review :)


Best Regards,
Alano.

Reply via email to