Skip to content
  • Alexey Kardashevskiy's avatar
    spapr: Move interrupt allocator to xics · bee763db
    Alexey Kardashevskiy authored
    
    
    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: default avatarAlexey Kardashevskiy <aik@ozlabs.ru>
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    bee763db