]> git.proxmox.com Git - mirror_qemu.git/commit - hw/intc/xics_kvm.c
xics: Add flags for interrupts
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Fri, 30 May 2014 09:34:12 +0000 (19:34 +1000)
committerAlexander Graf <agraf@suse.de>
Fri, 27 Jun 2014 11:48:26 +0000 (13:48 +0200)
commit4af88944d013330910826af10aaa2ef9a2919fde
tree7d5d4b08c573e4bdf6d9db8da92a16594253dacf
parent3b50d8974b979bbaa091978e70d83de939593d1f
xics: Add flags for interrupts

The existing interrupt allocation scheme in SPAPR assumes that
interrupts are allocated at the start time, continously and the config
will not change. However, there are cases when this is not going to work
such as:

1. migration - we will have to have an ability to choose interrupt
numbers for devices in the command line and this will create gaps in
interrupt space.

2. PCI hotplug - interrupts from unplugged device need to be returned
back to interrupt pool, otherwise we will quickly run out of interrupts.

This replaces a separate lslsi[] array with a byte in the ICSIRQState
struct and defines "LSI" and "MSI" flags. Neither of these flags set
signals that the descriptor is not allocated and not in use.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/intc/xics.c
hw/intc/xics_kvm.c
include/hw/ppc/xics.h