From: Bernhard Beschow <shentey@gmail.com>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Bernhard Beschow <shentey@gmail.com>,
qemu-ppc@nongnu.org, qemu-arm@nongnu.org
Subject: [PATCH v2 0/2] Reuse TYPE_GPIO_PWR in ppce500 machine
Date: Sat, 5 Oct 2024 12:02:26 +0200 [thread overview]
Message-ID: <20241005100228.28094-1-shentey@gmail.com> (raw)
Just like the ARM virt machine, the ppce500 machine implements a
"gpio-poweroff"-compatible device tree node. So far, the implementations
aren't shared, and in addition, the ppce500 machine uses qemu_allocate_irq()
which leaks memory. This series fixes both by reusing TYPE_GPIO_PWR.
Testing done:
* Build qemu_ppc64_e5500_defconfig in Buildroot, run it in the ppce500 machine
and issue the `poweroff` command. Observe that QEMU is shut down cleanly.
[1] https://github.com/shentok/qemu/tree/e500-fdt
Supersedes: 20240923101554.12900-1-shentey@gmail.com
Bernhard Beschow (2):
MAINTAINERS: Add hw/gpio/gpio_pwr.c
hw/ppc/e500: Reuse TYPE_GPIO_PWR
MAINTAINERS | 1 +
hw/ppc/e500.c | 16 ++++------------
hw/ppc/Kconfig | 1 +
3 files changed, 6 insertions(+), 12 deletions(-)
--
2.46.2
next reply other threads:[~2024-10-05 10:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-05 10:02 Bernhard Beschow [this message]
2024-10-05 10:02 ` [PATCH v2 1/2] MAINTAINERS: Add hw/gpio/gpio_pwr.c Bernhard Beschow
2024-10-05 10:02 ` [PATCH v2 2/2] hw/ppc/e500: Reuse TYPE_GPIO_PWR Bernhard Beschow
2024-10-07 21:13 ` Philippe Mathieu-Daudé
2024-10-12 13:41 ` Bernhard Beschow
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=20241005100228.28094-1-shentey@gmail.com \
--to=shentey@gmail.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/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).