spapr: Move interrupt allocator to xics
commitbee763dbfb8cfceea112131970da07f215f293a6
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 30 May 2014 09:34:15 +0000 (30 19:34 +1000)
committerAlexander Graf <agraf@suse.de>
Fri, 27 Jun 2014 11:48:26 +0000 (27 13:48 +0200)
treefef920a75cc760047d1f250adab046f0ddcfdf0f
parenta7e519a8cf12c9f08a28339743b648dde38cd9d3
spapr: Move interrupt allocator to xics

The current allocator returns IRQ numbers from a pool and does not
support IRQs reuse in any form as it did not keep track of what it
previously returned, it only keeps the last returned IRQ. Some use
cases such as PCI hot(un)plug may require IRQ release and reallocation.

This moves an allocator from SPAPR to XICS.

This switches IRQ users to use new API.

This uses LSI/MSI flags to know if interrupt is allocated.

The interrupt release function will be posted as a separate patch.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/intc/xics.c
hw/ppc/spapr.c
hw/ppc/spapr_events.c
hw/ppc/spapr_pci.c
hw/ppc/spapr_vio.c
include/hw/ppc/spapr.h
include/hw/ppc/xics.h
trace-events