From: Peter Maydell <peter.maydell@linaro.org>
To: Alexander Gryanko <xpahos@gmail.com>
Cc: Igor Mammedov <imammedo@redhat.com>,
qemu-devel@nongnu.org, qemu-arm@nongnu.org,
qemu-trivial@nongnu.org
Subject: Re: [PATCH] hw/arm: add pvpanic mmio device for arm
Date: Thu, 9 Oct 2025 17:36:34 +0100 [thread overview]
Message-ID: <CAFEAcA_t3zFfSiVaY++N8Li=tLv3hOpewZG1vB_OyKY2cWuwXg@mail.gmail.com> (raw)
In-Reply-To: <9961189C-3A61-4767-B620-C1B7315495CA@gmail.com>
On Thu, 9 Oct 2025 at 17:30, Alexander Gryanko <xpahos@gmail.com> wrote:
> I added '-machine dumpdtb=qemu.dtb', then converted dtb to dts 'dtc -I dtb -O dts -o qemu.dts qemu.dtb', added
>
> pvpanic@9060000 {
> reg = <0x0 0x09060000 0x0 0x2>;
> compatible = "qemu,pvpanic-mmio";
> };
>
> Then I compiled qemu without optimisation and set a breakpoint in ‘pvpanic_mmio_initfn'. It was never called with '-machine dtb=file.dtb'. 'info qtree' also does not show the device. Perhaps I have configured something incorrectly?
QEMU's virt board does not read the DTB and create
devices accordingly. It creates devices and writes
a DTB that matches what it has done. Editing the
DTB but not QEMU won't cause the device to be created,
it will just tell the guest kernel that there's a device
which doesn't really exist.
thanks
-- PMM
next prev parent reply other threads:[~2025-10-09 16:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-04 20:19 [PATCH] hw/arm: add pvpanic mmio device for arm Alexander Gryanko
2025-10-05 20:16 ` [PATCH v2] " xpahos
2025-10-05 22:50 ` xpahos
2025-10-06 10:41 ` [PATCH] " Peter Maydell
2025-10-06 11:52 ` Alexander Gryanko
2025-10-06 12:03 ` Peter Maydell
2025-10-07 13:11 ` Igor Mammedov
2025-10-09 13:25 ` Alexander Gryanko
2025-10-09 13:29 ` Peter Maydell
2025-10-09 16:30 ` Alexander Gryanko
2025-10-09 16:36 ` Peter Maydell [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-04 17:47 [PATCH] system/runstate.c: Add a newline character to correctly log guest errors Alexander Gryanko
2025-10-05 18:58 ` [PATCH v2] " Alexander Gryanko
2025-10-05 22:21 ` xpahos
2025-10-05 22:27 ` [PATCH v2] hw/arm: add pvpanic mmio device for arm xpahos
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='CAFEAcA_t3zFfSiVaY++N8Li=tLv3hOpewZG1vB_OyKY2cWuwXg@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=imammedo@redhat.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=xpahos@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).