]> Git Repo - qemu.git/commit - hw/ppc/Makefile.objs
spapr: introduce a fixed IRQ number space
authorCédric Le Goater <[email protected]>
Mon, 30 Jul 2018 14:11:32 +0000 (16:11 +0200)
committerDavid Gibson <[email protected]>
Tue, 21 Aug 2018 04:28:45 +0000 (14:28 +1000)
commit82cffa2eb255731b8402e206d0434cc884d99e54
tree763ef42808493580b1716ad8968162d43c6b743a
parentd45360d93d71578919ae8065a142beb941a900fd
spapr: introduce a fixed IRQ number space

This proposal introduces a new IRQ number space layout using static
numbers for all devices, depending on a device index, and a bitmap
allocator for the MSI IRQ numbers which are negotiated by the guest at
runtime.

As the VIO device model does not have a device index but a "reg"
property, we introduce a formula to compute an IRQ number from a "reg"
value. It should minimize most of the collisions.

The previous layout is kept in pre-3.1 machines raising the
'legacy_irq_allocation' machine class flag.

Signed-off-by: Cédric Le Goater <[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
Signed-off-by: David Gibson <[email protected]>
hw/ppc/Makefile.objs
hw/ppc/spapr.c
hw/ppc/spapr_events.c
hw/ppc/spapr_irq.c [new file with mode: 0644]
hw/ppc/spapr_pci.c
hw/ppc/spapr_vio.c
include/hw/ppc/spapr.h
include/hw/ppc/spapr_irq.h [new file with mode: 0644]
This page took 0.026455 seconds and 4 git commands to generate.