RFC hw: Replace cpu_interrupt() calls by qemu_irq(QDev GPIO)
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | target/alpha: Expose TMR and SMP IRQ lines via QDevtarget/ | +30 | 1 reply | |
| 2/2 | hw/alpha/typhoon: Set CPU IRQs using QDev APIhw/ | +9 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/2] hw: Replace cpu_interrupt() calls by qemu_irq(QDev GPIO)
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(-)
Signature · 1 line
2.41.0