* Monitor address printing
@ 2026-03-22 23:38 BALATON Zoltan
2026-03-23 2:07 ` Pierrick Bouvier
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: BALATON Zoltan @ 2026-03-22 23:38 UTC (permalink / raw)
To: qemu-devel; +Cc: Philippe Mathieu-Daudé, Paolo Bonzini
Hello,
Noticed that now addresses are printed with a lot of leading zeros in
monitor:
$ qemu-system-ppc -monitor stdio -S
QEMU 10.2.90 monitor - type 'help' for more information
(qemu) x/x 0
0000000000000000000000000000000000000000000000000000000000000000: 0x00000000
(qemu) x/x 0xfff00000
00000000000000000000000000000000000000000000000000000000fff00000: 0x60000000
I suspected maybe the recent changes around 42cc2028a43 might have
something to do with that so I tried to find a point to bisect but looks
like some build system changes also broke that:
$ git checkout 42cc2028a43^
$ configure...
[...]
mkvenv: installing meson==1.10.0, pycotap==1.3.1, qemu.qmp==0.0.5, setuptools>=44.1.1, wheel>=0.34.2, pip>=20.3.4
ERROR: Could not find a version that satisfies the requirement wheel>=0.34.2 (from versions: none)
ERROR: No matching distribution found for wheel>=0.34.2
*** Ouch! ***
Could not provide build dependency 'meson==1.10.0':
master still builds and I get the above error with earlier version even
with a new empty build dir so looks like some build system problem. Could
you please check and fix these?
Regards,
BALATON Zoltan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Monitor address printing
2026-03-22 23:38 Monitor address printing BALATON Zoltan
@ 2026-03-23 2:07 ` Pierrick Bouvier
2026-03-23 5:58 ` Thomas Huth
2026-03-23 9:00 ` Philippe Mathieu-Daudé
2 siblings, 0 replies; 7+ messages in thread
From: Pierrick Bouvier @ 2026-03-23 2:07 UTC (permalink / raw)
To: BALATON Zoltan, qemu-devel; +Cc: Philippe Mathieu-Daudé, Paolo Bonzini
On 3/22/26 4:38 PM, BALATON Zoltan wrote:
> Hello,
>
> Noticed that now addresses are printed with a lot of leading zeros in
> monitor:
>
> $ qemu-system-ppc -monitor stdio -S
> QEMU 10.2.90 monitor - type 'help' for more information
> (qemu) x/x 0
> 0000000000000000000000000000000000000000000000000000000000000000: 0x00000000
> (qemu) x/x 0xfff00000
> 00000000000000000000000000000000000000000000000000000000fff00000: 0x60000000
>
> I suspected maybe the recent changes around 42cc2028a43 might have
> something to do with that so I tried to find a point to bisect but looks
> like some build system changes also broke that:
>
> $ git checkout 42cc2028a43^
> $ configure...
> [...]
> mkvenv: installing meson==1.10.0, pycotap==1.3.1, qemu.qmp==0.0.5, setuptools>=44.1.1, wheel>=0.34.2, pip>=20.3.4
> ERROR: Could not find a version that satisfies the requirement wheel>=0.34.2 (from versions: none)
> ERROR: No matching distribution found for wheel>=0.34.2
>
> *** Ouch! ***
>
> Could not provide build dependency 'meson==1.10.0':
>
> master still builds and I get the above error with earlier version even
> with a new empty build dir so looks like some build system problem. Could
> you please check and fix these?
>
Build system has been broken upstream for a few commits, and I'm afraid
there is no proper fix for concerned revisions.
You should skip them in your bisect run (git bisect skip or run script
should return 125).
> Regards,
> BALATON Zoltan
>
Regards,
Pierrick
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Monitor address printing
2026-03-22 23:38 Monitor address printing BALATON Zoltan
2026-03-23 2:07 ` Pierrick Bouvier
@ 2026-03-23 5:58 ` Thomas Huth
2026-03-23 9:00 ` Philippe Mathieu-Daudé
2 siblings, 0 replies; 7+ messages in thread
From: Thomas Huth @ 2026-03-23 5:58 UTC (permalink / raw)
To: BALATON Zoltan, qemu-devel; +Cc: Philippe Mathieu-Daudé, Paolo Bonzini
On 23/03/2026 00.38, BALATON Zoltan wrote:
> Hello,
>
> Noticed that now addresses are printed with a lot of leading zeros in monitor:
>
> $ qemu-system-ppc -monitor stdio -S
> QEMU 10.2.90 monitor - type 'help' for more information
> (qemu) x/x 0
> 0000000000000000000000000000000000000000000000000000000000000000: 0x00000000
> (qemu) x/x 0xfff00000
> 00000000000000000000000000000000000000000000000000000000fff00000: 0x60000000
>
> I suspected maybe the recent changes around 42cc2028a43 might have something
> to do with that so I tried to find a point to bisect but looks like some
> build system changes also broke that:
>
> $ git checkout 42cc2028a43^
> $ configure...
> [...]
> mkvenv: installing meson==1.10.0, pycotap==1.3.1, qemu.qmp==0.0.5,
> setuptools>=44.1.1, wheel>=0.34.2, pip>=20.3.4
> ERROR: Could not find a version that satisfies the requirement wheel>=0.34.2
> (from versions: none)
> ERROR: No matching distribution found for wheel>=0.34.2
FWIW, I think there were some few days where you had to manually install the
wheel package to work around that problem, e.g. on Fedora "dnf install
python3-wheel" should fix it.
Thomas
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Monitor address printing
2026-03-22 23:38 Monitor address printing BALATON Zoltan
2026-03-23 2:07 ` Pierrick Bouvier
2026-03-23 5:58 ` Thomas Huth
@ 2026-03-23 9:00 ` Philippe Mathieu-Daudé
2026-03-23 9:35 ` Philippe Mathieu-Daudé
2 siblings, 1 reply; 7+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-03-23 9:00 UTC (permalink / raw)
To: BALATON Zoltan, qemu-devel; +Cc: Paolo Bonzini
On 23/3/26 00:38, BALATON Zoltan wrote:
> Hello,
>
> Noticed that now addresses are printed with a lot of leading zeros in
> monitor:
>
> $ qemu-system-ppc -monitor stdio -S
> QEMU 10.2.90 monitor - type 'help' for more information
> (qemu) x/x 0
> 0000000000000000000000000000000000000000000000000000000000000000:
> 0x00000000
> (qemu) x/x 0xfff00000
> 00000000000000000000000000000000000000000000000000000000fff00000:
> 0x60000000
Likely commit 6ad593a75a8 ("monitor/hmp: Use plain uint64_t @addr
argument in memory_dump()").
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Monitor address printing
2026-03-23 9:00 ` Philippe Mathieu-Daudé
@ 2026-03-23 9:35 ` Philippe Mathieu-Daudé
2026-03-23 9:42 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 7+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-03-23 9:35 UTC (permalink / raw)
To: BALATON Zoltan, qemu-devel; +Cc: Paolo Bonzini
On 23/3/26 10:00, Philippe Mathieu-Daudé wrote:
> On 23/3/26 00:38, BALATON Zoltan wrote:
>> Hello,
>>
>> Noticed that now addresses are printed with a lot of leading zeros in
>> monitor:
>>
>> $ qemu-system-ppc -monitor stdio -S
>> QEMU 10.2.90 monitor - type 'help' for more information
>> (qemu) x/x 0
>> 0000000000000000000000000000000000000000000000000000000000000000:
>> 0x00000000
>> (qemu) x/x 0xfff00000
>> 00000000000000000000000000000000000000000000000000000000fff00000:
>> 0x60000000
>
> Likely commit 6ad593a75a8 ("monitor/hmp: Use plain uint64_t @addr
> argument in memory_dump()").
>
Thanks for the report, I'll post a patch with a fix similar to:
-- >8 --
diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c
index bad034937a9..59d49b00f7b 100644
--- a/monitor/hmp-cmds.c
+++ b/monitor/hmp-cmds.c
@@ -537,9 +537,11 @@ static void memory_dump(Monitor *mon, int count,
int format, int wsize,
uint8_t buf[16];
uint64_t v;
CPUState *cs = mon_get_cpu(mon);
- const unsigned int addr_width = is_physical ? 8 :
(target_long_bits() * 2);
+ const unsigned int addr_width = is_physical ? 8 :
(target_long_bits() / 4);
const bool big_endian = target_big_endian();
---
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: Monitor address printing
2026-03-23 9:35 ` Philippe Mathieu-Daudé
@ 2026-03-23 9:42 ` Philippe Mathieu-Daudé
2026-03-23 12:53 ` Dr. David Alan Gilbert
0 siblings, 1 reply; 7+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-03-23 9:42 UTC (permalink / raw)
To: BALATON Zoltan, qemu-devel; +Cc: Paolo Bonzini, Dr. David Alan Gilbert
On 23/3/26 10:35, Philippe Mathieu-Daudé wrote:
> On 23/3/26 10:00, Philippe Mathieu-Daudé wrote:
>> On 23/3/26 00:38, BALATON Zoltan wrote:
>>> Hello,
>>>
>>> Noticed that now addresses are printed with a lot of leading zeros in
>>> monitor:
>>>
>>> $ qemu-system-ppc -monitor stdio -S
>>> QEMU 10.2.90 monitor - type 'help' for more information
>>> (qemu) x/x 0
>>> 0000000000000000000000000000000000000000000000000000000000000000:
>>> 0x00000000
>>> (qemu) x/x 0xfff00000
>>> 00000000000000000000000000000000000000000000000000000000fff00000:
>>> 0x60000000
>>
>> Likely commit 6ad593a75a8 ("monitor/hmp: Use plain uint64_t @addr
>> argument in memory_dump()").
>>
>
> Thanks for the report, I'll post a patch with a fix similar to:
>
> -- >8 --
> diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c
> index bad034937a9..59d49b00f7b 100644
> --- a/monitor/hmp-cmds.c
> +++ b/monitor/hmp-cmds.c
> @@ -537,9 +537,11 @@ static void memory_dump(Monitor *mon, int count,
> int format, int wsize,
> uint8_t buf[16];
> uint64_t v;
> CPUState *cs = mon_get_cpu(mon);
> - const unsigned int addr_width = is_physical ? 8 :
> (target_long_bits() * 2);
> + const unsigned int addr_width = is_physical ? 8 :
> (target_long_bits() / 4);
> const bool big_endian = target_big_endian();
> ---
Dave had it right during review btw ;)
https://lore.kernel.org/qemu-devel/aUyC6HNv8KftowlQ@gallifrey/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Monitor address printing
2026-03-23 9:42 ` Philippe Mathieu-Daudé
@ 2026-03-23 12:53 ` Dr. David Alan Gilbert
0 siblings, 0 replies; 7+ messages in thread
From: Dr. David Alan Gilbert @ 2026-03-23 12:53 UTC (permalink / raw)
To: Philippe Mathieu-Daudé; +Cc: BALATON Zoltan, qemu-devel, Paolo Bonzini
* Philippe Mathieu-Daudé (philmd@linaro.org) wrote:
> On 23/3/26 10:35, Philippe Mathieu-Daudé wrote:
> > On 23/3/26 10:00, Philippe Mathieu-Daudé wrote:
> > > On 23/3/26 00:38, BALATON Zoltan wrote:
> > > > Hello,
> > > >
> > > > Noticed that now addresses are printed with a lot of leading
> > > > zeros in monitor:
> > > >
> > > > $ qemu-system-ppc -monitor stdio -S
> > > > QEMU 10.2.90 monitor - type 'help' for more information
> > > > (qemu) x/x 0
> > > > 0000000000000000000000000000000000000000000000000000000000000000:
> > > > 0x00000000
> > > > (qemu) x/x 0xfff00000
> > > > 00000000000000000000000000000000000000000000000000000000fff00000:
> > > > 0x60000000
> > >
> > > Likely commit 6ad593a75a8 ("monitor/hmp: Use plain uint64_t @addr
> > > argument in memory_dump()").
> > >
> >
> > Thanks for the report, I'll post a patch with a fix similar to:
> >
> > -- >8 --
> > diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c
> > index bad034937a9..59d49b00f7b 100644
> > --- a/monitor/hmp-cmds.c
> > +++ b/monitor/hmp-cmds.c
> > @@ -537,9 +537,11 @@ static void memory_dump(Monitor *mon, int count,
> > int format, int wsize,
> > uint8_t buf[16];
> > uint64_t v;
> > CPUState *cs = mon_get_cpu(mon);
> > - const unsigned int addr_width = is_physical ? 8 :
> > (target_long_bits() * 2);
> > + const unsigned int addr_width = is_physical ? 8 :
> > (target_long_bits() / 4);
> > const bool big_endian = target_big_endian();
> > ---
>
> Dave had it right during review btw ;)
> https://lore.kernel.org/qemu-devel/aUyC6HNv8KftowlQ@gallifrey/
Haha, only spotted half the confusion!
Dave
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ dave @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-03-23 12:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-22 23:38 Monitor address printing BALATON Zoltan
2026-03-23 2:07 ` Pierrick Bouvier
2026-03-23 5:58 ` Thomas Huth
2026-03-23 9:00 ` Philippe Mathieu-Daudé
2026-03-23 9:35 ` Philippe Mathieu-Daudé
2026-03-23 9:42 ` Philippe Mathieu-Daudé
2026-03-23 12:53 ` Dr. David Alan Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox