• A
    spapr: Move interrupt allocator to xics · bee763db
    Alexey Kardashevskiy 提交于
    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: NAlexey Kardashevskiy <aik@ozlabs.ru>
    Signed-off-by: NAlexander Graf <agraf@suse.de>
    bee763db
spapr_pci.c 30.2 KB