From: Peter Xu <peterx@redhat.com>
To: BALATON Zoltan <balaton@eik.bme.hu>
Cc: "Thomas Huth" <thuth@redhat.com>,
qemu-devel@nongnu.org,
"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: Re: [PATCH] hw/display/tcx: Init memory regions in realize
Date: Tue, 17 Mar 2026 10:24:08 -0400 [thread overview]
Message-ID: <ablkCJNrVAWoA31s@x1.local> (raw)
In-Reply-To: <a6e7e27c-5fe7-5451-d793-e746719014d8@eik.bme.hu>
On Tue, Mar 17, 2026 at 11:24:16AM +0100, BALATON Zoltan wrote:
> On Tue, 17 Mar 2026, BALATON Zoltan wrote:
> > On Tue, 17 Mar 2026, Thomas Huth wrote:
> > > On 17/03/2026 06.41, Thomas Huth wrote:
> > > > On 16/03/2026 23.30, BALATON Zoltan wrote:
> > > > > On Mon, 16 Mar 2026, Peter Xu wrote:
> > > > > > On Mon, Mar 16, 2026 at 07:10:05PM +0100, BALATON Zoltan wrote:
> > > > > > > On Mon, 16 Mar 2026, Peter Xu wrote:
> > > > > > > > On Mon, Mar 16, 2026 at 02:06:51PM +0100, BALATON Zoltan wrote:
> > > > > > > > > Due to aux-ram-share property qemu_ram_alloc_internal dereferences
> > > > > > > > > current_machine which is not set during init when inspecting the
> > > > > > > > > device. This causes the qtest/device-introspect-test to fail since a
> > > > > > > >
> > > > > > > > Does it has anything to do with aux-ram-share?
> > > > > > > > I thought it's because the
> > > > > > > > qom introspect test will create yet another
> > > > > > > > sun-tcx device, causing double
> > > > > > > > registration?
> > > > > > >
> > > > > > > I could reproduce it like this:
> > > > > >
> > > > > > I would treat this one a separate bug, because it
> > > > > > doesn't look special to
> > > > > > sparc systems.
> > > > >
> > > > > I thought this is the issue Thomas has reported. I found
> > > > > this command by looking at what the test does but looks like
> > > > > this gets a different error but the fix is the same.
> > > >
> > > > It's slightly different. The bug that I found via the device
> > > > introspection test is using "-M SS-20" and then it's crashing
> > > > when a second sun-tcx device is instantiated.
> > > > The bug that you found is crashing because using "-device
> > > > sun-tcx,help" instantiates the device for introspection before
> > > > the machine has been created, so code that dereferences
> > > > current_machine is running into a NULL pointer related
> > > > segmentation fault.
> > >
> > > By the way, "qemu-system-sparc -device cgthree,help" crashes in the
> > > same way.
> >
> > OK, I'll send a v2 fixing that and updating the commit message to
> > mention both issues.
>
> Looks like you were faster, Then I won't do it.
Note that I've queued this patch with amended commit message. If anyone
thinks I should drop it please say so.. otherwise I'll keep it to make sure
it is fixed in 11.0 (as it fixes a qtest failure introduced in the previous
mem pull).
Thanks,
--
Peter Xu
prev parent reply other threads:[~2026-03-17 14:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-16 13:06 [PATCH] hw/display/tcx: Init memory regions in realize BALATON Zoltan
2026-03-16 16:06 ` Peter Xu
2026-03-16 16:23 ` Thomas Huth
2026-03-16 16:36 ` Peter Maydell
2026-03-16 17:49 ` Peter Xu
2026-03-16 21:45 ` Mark Cave-Ayland
2026-03-17 5:31 ` Thomas Huth
2026-03-16 18:10 ` BALATON Zoltan
2026-03-16 21:30 ` Peter Xu
2026-03-16 22:30 ` BALATON Zoltan
2026-03-17 5:41 ` Thomas Huth
2026-03-17 6:15 ` Thomas Huth
2026-03-17 10:17 ` BALATON Zoltan
2026-03-17 10:24 ` BALATON Zoltan
2026-03-17 14:24 ` Peter Xu [this message]
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=ablkCJNrVAWoA31s@x1.local \
--to=peterx@redhat.com \
--cc=balaton@eik.bme.hu \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=peter.maydell@linaro.org \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.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.