qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] hw: Replace cpu_interrupt() calls by qemu_irq(QDev GPIO)
@ 2024-02-20 19:26 Philippe Mathieu-Daudé
  2024-02-20 19:26 ` [RFC PATCH 1/2] target/alpha: Expose TMR and SMP IRQ lines via QDev Philippe Mathieu-Daudé
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-02-20 19:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Eduardo Habkost, Alex Bennée, Mark Cave-Ayland,
	Bernhard Beschow, Richard Henderson, Markus Armbruster,
	Alexander Graf, Anton Johansson, Paolo Bonzini, Thomas Huth,
	Philippe Mathieu-Daudé

Hi,

cpu_interrupt() doesn't scale well with heterogenous machines
because its mask is target specific (defined in target/ARCH/cpu.h).

While it is (often...) used by target-specific hw to notify cpu,
there is no restriction to use such target-specific hw in a
heterogeneous setup, where it'd still target the same kind of
target cpus.

The Alpha Typhoon HW is unlikely to be used heterogeneously,
but it is the simplest case I found to illustrate how I plan
to remove cpu_interrupt() calls from hw/: use the QDev GPIO API.

Does that sound good enough?

Thanks,

Phil.

Philippe Mathieu-Daudé (2):
  target/alpha: Expose TMR and SMP IRQ lines via QDev
  hw/alpha/typhoon: Set CPU IRQs using QDev API

 hw/alpha/typhoon.c | 15 +++++++++------
 target/alpha/cpu.c | 30 ++++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 6 deletions(-)

-- 
2.41.0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-23 19:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-20 19:26 [RFC PATCH 0/2] hw: Replace cpu_interrupt() calls by qemu_irq(QDev GPIO) Philippe Mathieu-Daudé
2024-02-20 19:26 ` [RFC PATCH 1/2] target/alpha: Expose TMR and SMP IRQ lines via QDev Philippe Mathieu-Daudé
2024-02-23 18:58   ` Peter Maydell
2024-02-20 19:26 ` [RFC PATCH 2/2] hw/alpha/typhoon: Set CPU IRQs using QDev API Philippe Mathieu-Daudé
2024-02-21 12:24 ` [RFC PATCH 0/2] hw: Replace cpu_interrupt() calls by qemu_irq(QDev GPIO) Mark Cave-Ayland
2024-02-23 18:51 ` Peter Maydell

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).