From: deller@kernel.org
To: qemu-devel@nongnu.org
Cc: "Kyle Evans" <kevans@freebsd.org>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Laurent Vivier" <laurent@vivier.eu>,
"Warner Losh" <imp@bsdimp.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
deller@gmx.de, "Richard Henderson" <richard.henderson@linaro.org>,
"Pierrick Bouvier" <pierrick.bouvier@linaro.org>
Subject: [PULL 01/12] hw/hppa: Avoid leaking a diva-gsp device
Date: Sun, 8 Mar 2026 18:29:25 +0100 [thread overview]
Message-ID: <20260308172936.2835-2-deller@kernel.org> (raw)
In-Reply-To: <20260308172936.2835-1-deller@kernel.org>
From: Helge Deller <deller@gmx.de>
Create a Diva-gsp unconditionally on all 64-bit PCI machines.
The A400 usually comes with a Diva card. The C3700 has a built-in
SUPERIO chip, which we haven't implemented yet, so running with an
emulated Diva is the best we can do for now.
Signed-off-by: Helge Deller <deller@gmx.de>
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
---
hw/hppa/machine.c | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c
index f55e84529f..50ace81528 100644
--- a/hw/hppa/machine.c
+++ b/hw/hppa/machine.c
@@ -380,18 +380,15 @@ static void machine_HP_common_init_tail(MachineState *machine, PCIBus *pci_bus,
if (pci_bus && hppa_is_pa20(&cpu[0]->env)) {
/* BMC board: HP Diva GSP PCI card */
- dev = qdev_new("diva-gsp");
- if (dev && !object_property_get_bool(OBJECT(dev), "disable", NULL)) {
- pci_dev = pci_new_multifunction(PCI_DEVFN(2, 0), "diva-gsp");
- if (!lasi_dev) {
- /* bind default keyboard/serial to Diva card */
- qdev_prop_set_chr(DEVICE(pci_dev), "chardev1", serial_hd(0));
- qdev_prop_set_chr(DEVICE(pci_dev), "chardev2", serial_hd(1));
- qdev_prop_set_chr(DEVICE(pci_dev), "chardev3", serial_hd(2));
- qdev_prop_set_chr(DEVICE(pci_dev), "chardev4", serial_hd(3));
- }
- pci_realize_and_unref(pci_dev, pci_bus, &error_fatal);
+ pci_dev = pci_new_multifunction(PCI_DEVFN(2, 0), "diva-gsp");
+ if (!lasi_dev) {
+ /* bind default keyboard/serial to Diva card */
+ qdev_prop_set_chr(DEVICE(pci_dev), "chardev1", serial_hd(0));
+ qdev_prop_set_chr(DEVICE(pci_dev), "chardev2", serial_hd(1));
+ qdev_prop_set_chr(DEVICE(pci_dev), "chardev3", serial_hd(2));
+ qdev_prop_set_chr(DEVICE(pci_dev), "chardev4", serial_hd(3));
}
+ pci_realize_and_unref(pci_dev, pci_bus, &error_fatal);
}
/* create USB OHCI controller for USB keyboard & mouse on Astro machines */
--
2.53.0
next prev parent reply other threads:[~2026-03-08 17:30 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-08 17:29 [PULL 00/12] For next patches deller
2026-03-08 17:29 ` deller [this message]
2026-03-08 17:29 ` [PULL 02/12] hw/char: Drop disable property of Diva GSP card deller
2026-03-08 17:29 ` [PULL 03/12] linux-user/strace: fix printing of file offsets deller
2026-03-08 17:29 ` [PULL 04/12] linux-user: properly check flags in openat2 deller
2026-03-08 17:29 ` [PULL 05/12] linux-user: Check if RESOLVE_CACHED flag is defined before using it deller
2026-03-08 17:29 ` [PULL 06/12] linux-user: fix matching ioctl numbers in print_ioctl deller
2026-03-08 17:29 ` [PULL 07/12] linux-user: fix TIOCGSID ioctl deller
2026-03-08 17:29 ` [PULL 08/12] linux-user: Deal with mmap where start > reserved_va deller
2026-03-08 17:29 ` [PULL 09/12] bsd-user: " deller
2026-03-08 17:29 ` [PULL 10/12] tests/tcg/multiarch/test-mmap: Print more details deller
2026-03-08 17:29 ` [PULL 11/12] tests/tcg/multiarch/test-mmap: Check mmaps beyond reserved_va deller
2026-03-08 17:29 ` [PULL 12/12] linux-user: Improve formatting for mremap() deller
2026-03-09 13:44 ` [PULL 00/12] For next patches Helge Deller
2026-03-09 13:51 ` Philippe Mathieu-Daudé
2026-03-09 13:53 ` Helge Deller
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=20260308172936.2835-2-deller@kernel.org \
--to=deller@kernel.org \
--cc=alex.bennee@linaro.org \
--cc=deller@gmx.de \
--cc=imp@bsdimp.com \
--cc=kevans@freebsd.org \
--cc=laurent@vivier.eu \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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