pseries: Split xics irq configuration from state information
commit22a2611c9cef4a8c8ad96fe17b3511a6cc5fb3a1
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 12 Nov 2012 16:46:55 +0000 (12 16:46 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 14 Dec 2012 12:12:54 +0000 (14 13:12 +0100)
tree2233d3eddcede09496995341736aa377e139efc1
parent500efa2319d1f1074b1d61e5ceb7a0fd61d0831d
pseries: Split xics irq configuration from state information

Currently the XICS irq controller code has a per-irq state structure which
amongst other things includes whether the interrupt is level or message
triggered - this is configured by the platform code, and is not directly
visible to the guest.  This leads to a slightly awkward construct at reset
time where we need to reset everything in the state structure _except_ the
lsi/msi flag, which needs to retain the information given at platform init
time.

More importantly this flag will make matching the qemu state to the KVM
state for the upcoming in-kernel XICS implementation more awkward.  This
patch, therefore, removes this flag from the per-irq state structure,
instead adding a parallel array giving the lsi/msi configuration per irq.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/xics.c