Hello, When the XIVE router unit receives a trigger message coming from a HW source, it contains a special bit informing the XIVE interrupt controller that the PQ bits have been checked at the source or not. Depending on the value, the IC can perform the check and the state transition locally using its own PQ state bits.
The following changes add new accessors to the XiveRouter required to query and update the PQ state bits. This is only applies to the PowerNV machine, sPAPR is not concerned by such complex configuration. We will use it for upcoming features offloading event coalescing on the interrupt controller. Thanks, C. Cédric Le Goater (2): ppc/xive: export PQ routines ppc/xive: Add support for PQ state bits offload include/hw/ppc/xive.h | 12 +++++++-- hw/intc/pnv_xive.c | 37 ++++++++++++++++++++++++--- hw/intc/spapr_xive_kvm.c | 8 +++--- hw/intc/xive.c | 54 ++++++++++++++++++++++++++++++++-------- hw/pci-host/pnv_phb4.c | 9 +++++-- hw/ppc/pnv_psi.c | 8 ++++-- 6 files changed, 105 insertions(+), 23 deletions(-) -- 2.21.1