From: Stefan Hajnoczi <stefanha@redhat.com>
To: "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
qemu-arm@nongnu.org, qemu-devel@nongnu.org,
"Elena Ufimtseva" <elena.ufimtseva@oracle.com>,
"Jagannathan Raman" <jag.raman@oracle.com>,
"Gustavo Romero" <gustavo.romero@linaro.org>,
"Alex Bennée" <alex.bennee@linaro.org>,
"Pierrick Bouvier" <pierrick.bouvier@oss.qualcomm.com>
Subject: Re: [PATCH 1/6] hw/remote/machine.c: Mark x-remote machine as OK for AArch64 and AArch32
Date: Mon, 20 Jul 2026 11:07:14 -0400 [thread overview]
Message-ID: <20260720150714.GA56010@fedora> (raw)
In-Reply-To: <1bcf5fd5-b2ee-4adf-ad16-bac12050baa3@oss.qualcomm.com>
[-- Attachment #1: Type: text/plain, Size: 1558 bytes --]
On Mon, Jul 20, 2026 at 02:39:06PM +0200, Philippe Mathieu-Daudé wrote:
> +Stefan
>
> On 7/5/26 21:47, Peter Maydell wrote:
> > When we updated Arm and AArch64 board types to mark them for the
> > target_machine_typename() filter, we forgot about the "x-remote"
> > machine type, which meant that it disappeared from the set of board
> > types exposed on the qemu-system-arm and qemu-system-aarch64
> > binaries. We didn't notice this, because although we have a
> > functional test for it, it requires the KVM accelerator and we don't
>
> I don't remember why it requires KVM.
>
> $ git grep -i kvm hw/remote/
> hw/remote/Kconfig:3: depends on PCI && PCI_EXPRESS && KVM
> hw/remote/proxy.c:36: kvm_irqchip_remove_irqfd_notifier_gsi(kvm_state,
> &dev->intr, dev->virq);
> hw/remote/proxy.c:45: kvm_irqchip_add_irqfd_notifier_gsi(kvm_state,
> &dev->intr,
>
> I suppose these 2 calls should be replaced by generic equivalents:
> - accel_irqchip_remove_irqfd_notifier_gsi()
> - accel_irqchip_add_irqfd_notifier_gsi()
The generic functions call into KVM or MSHV or return -ENOSYS if neither
are available in. While QEMU will compile, x-remote won't work at
runtime.
If someone wants to make x-remote actually work at runtime without KVM
then that should be possible too: set up an EventNotifier that handles
interrupt requests from the remote process and invokes QEMU's internal
irq APIs to inject them into the guest. There may already be code to do
that somewhere or, if not, it shouldn't be hard to write.
Stefan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-07-20 15:08 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-07 19:47 [PATCH 0/6] target/arm: Fix functional test failures in KVM-only builds Peter Maydell
2026-05-07 19:47 ` [PATCH 1/6] hw/remote/machine.c: Mark x-remote machine as OK for AArch64 and AArch32 Peter Maydell
2026-05-08 8:08 ` Philippe Mathieu-Daudé
2026-07-20 12:39 ` Philippe Mathieu-Daudé
2026-07-20 14:34 ` Pierrick Bouvier
2026-07-20 15:07 ` Stefan Hajnoczi [this message]
2026-05-07 19:47 ` [PATCH 2/6] tests/functional/test_virt_vbsa: Skip UEFI test if virtualization not supported Peter Maydell
2026-05-08 8:09 ` Philippe Mathieu-Daudé
2026-05-07 19:47 ` [PATCH 3/6] tests/functional/test_kvm.py: Use -cpu max, not cortex-a72 Peter Maydell
2026-05-08 8:10 ` Philippe Mathieu-Daudé
2026-05-08 20:51 ` Richard Henderson
2026-05-07 19:47 ` [PATCH 4/6] tests/functional/test_kvm.py: Skip if virtualization not supported Peter Maydell
2026-05-08 8:09 ` Philippe Mathieu-Daudé
2026-05-08 20:52 ` Richard Henderson
2026-05-07 19:47 ` [PATCH 5/6] tests/functional/test_hotplug_pci.py: Require TCG Peter Maydell
2026-05-08 7:58 ` Philippe Mathieu-Daudé
2026-05-08 20:52 ` Richard Henderson
2026-05-07 19:47 ` [PATCH 6/6] tests/functional/test_tuxrun: Restrict to TCG Peter Maydell
2026-05-08 7:59 ` Philippe Mathieu-Daudé
2026-05-08 20:52 ` Richard Henderson
2026-05-07 20:54 ` [PATCH 0/6] target/arm: Fix functional test failures in KVM-only builds Pierrick Bouvier
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=20260720150714.GA56010@fedora \
--to=stefanha@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=elena.ufimtseva@oracle.com \
--cc=gustavo.romero@linaro.org \
--cc=jag.raman@oracle.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@oss.qualcomm.com \
--cc=pierrick.bouvier@oss.qualcomm.com \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@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 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.