[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [RFC PATCH 25/26] spapr: print the XIVE interrupt source for
From: |
Cédric Le Goater |
Subject: |
[Qemu-ppc] [RFC PATCH 25/26] spapr: print the XIVE interrupt source for IPIs in the monitor |
Date: |
Wed, 5 Jul 2017 19:13:38 +0200 |
Signed-off-by: Cédric Le Goater <address@hidden>
---
hw/intc/xive_spapr.c | 5 +++++
hw/ppc/spapr.c | 4 ++++
include/hw/ppc/xive.h | 1 +
3 files changed, 10 insertions(+)
diff --git a/hw/intc/xive_spapr.c b/hw/intc/xive_spapr.c
index eb8a5c081e51..4f689f8b97c0 100644
--- a/hw/intc/xive_spapr.c
+++ b/hw/intc/xive_spapr.c
@@ -36,6 +36,11 @@ ICSState *xive_ics_get(XIVE *x, uint32_t lisn)
return ics_valid_irq(ics, lisn) ? ics : NULL;
}
+void xive_ics_pic_print_info(XIVE *x, Monitor *mon)
+{
+ ics_pic_print_info(ICS_BASE(&x->ipi_xs), mon);
+}
+
static XiveICSState *xive_ics_find(sPAPRMachineState *spapr, uint32_t lisn)
{
XICSFabricClass *xic = XICS_FABRIC_GET_CLASS(spapr);
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 816661f4c9ad..ca3a6bc2ea16 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -3399,6 +3399,10 @@ static void spapr_pic_print_info(InterruptStatsProvider
*obj,
icp_pic_print_info(ICP(cpu->intc), mon);
}
+ if (spapr_ovec_test(spapr->ov5_cas, OV5_XIVE_EXPLOIT)) {
+ xive_ics_pic_print_info(spapr->xive, mon);
+ }
+
ics_pic_print_info(spapr->ics, mon);
}
diff --git a/include/hw/ppc/xive.h b/include/hw/ppc/xive.h
index dc5309264422..ee9b32d8c884 100644
--- a/include/hw/ppc/xive.h
+++ b/include/hw/ppc/xive.h
@@ -75,5 +75,6 @@ void xive_ics_create(XiveICSState *xs, XIVE *x, uint32_t
offset,
uint32_t nr_irqs, uint32_t shift, uint32_t flags,
Error **errp);
ICSState *xive_ics_get(XIVE *x, uint32_t lisn);
+void xive_ics_pic_print_info(XIVE *x, Monitor *mon);
#endif /* PPC_XIVE_H */
--
2.7.5
- [Qemu-ppc] [RFC PATCH 18/26] ppc/xive: add device tree support, (continued)
- [Qemu-ppc] [RFC PATCH 20/26] ppc/xive: introduce a helper to create XIVE interrupt source objects, Cédric Le Goater, 2017/07/05
- [Qemu-ppc] [RFC PATCH 21/26] ppc/xive: introduce routines to allocate IRQ numbers, Cédric Le Goater, 2017/07/05
- [Qemu-ppc] [RFC PATCH 22/26] ppc/xive: create an XIVE interrupt source to handle IPIs, Cédric Le Goater, 2017/07/05
- [Qemu-ppc] [RFC PATCH 23/26] spapr: add a XIVE object to the sPAPR machine, Cédric Le Goater, 2017/07/05
- [Qemu-ppc] [RFC PATCH 24/26] spapr: include the XIVE interrupt source for IPIs, Cédric Le Goater, 2017/07/05
- [Qemu-ppc] [RFC PATCH 25/26] spapr: print the XIVE interrupt source for IPIs in the monitor,
Cédric Le Goater <=
- [Qemu-ppc] [RFC PATCH 26/26] spapr: force XIVE exploitation mode for POWER9 (HACK), Cédric Le Goater, 2017/07/05
- Re: [Qemu-ppc] [RFC PATCH 00/26] guest exploitation of the XIVE interrupt controller (POWER9), David Gibson, 2017/07/10
- Re: [Qemu-ppc] [RFC PATCH 00/26] guest exploitation of the XIVE interrupt controller (POWER9), David Gibson, 2017/07/18