[PATCH v4 0/8] In-kernel XICS interrupt controller emulation

Paul Mackerras
2013-04-11T05:52:05Z

This is a repost of my patch series implementing in-kernel emulation
of the XICS interrupt controller architecture defined in PAPR (Power
Architecture Platform Requirements, the document that defines IBM's
pSeries platform architecture). This version of the patch series uses
the device API as posted by Scott Wood. I have structured the series
so that the API is added by the last two patches, so as to be able to
accommodate any future revisions to the device API with minimal
changes.

The series is based on Alex Graf's kvm-ppc-next branch with Scott
Wood's recent patch series applied on top, together with the patch
below to allow it to compile with CONFIG_KVM_MPIC=n.

The API defined here uses KVM_CREATE_DEVICE to create the XICS,
KVM_DEVICE_SET_ATTR/KVM_DEVICE_GET_ATTR to manipulate the interrupt
sources (for initialization and migration), a new KVM_CAP_IRQ_XICS
capability to connect vcpus to the XICS, a new identifier
KVM_REG_PPC_ICP_STATE for the one-reg interface to get and set
per-vcpu state, and the existing KVM_IRQ_LINE ioctl to assert and
deassert interrupt sources.

Paul.