diff options
author | Greg Kurz | 2019-09-12 16:30:09 +0200 |
---|---|---|
committer | David Gibson | 2019-10-04 02:25:23 +0200 |
commit | f041d6af55708a75851bfc4ef1373a565703f976 (patch) | |
tree | cb51116f2f6cdfe2e678888292a95cf3fd8148ac | |
parent | hw/ppc/pnv: fix checkpatch.pl coding style warnings (diff) | |
download | qemu-f041d6af55708a75851bfc4ef1373a565703f976.tar.gz qemu-f041d6af55708a75851bfc4ef1373a565703f976.tar.xz qemu-f041d6af55708a75851bfc4ef1373a565703f976.zip |
spapr: Report kvm_irqchip_in_kernel() in 'info pic'
Unless the machine was started with kernel-irqchip=on, we cannot easily
tell if we're actually using an in-kernel or an emulated irqchip. This
information is important enough that it is worth printing it in 'info
pic'.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <156829860985.2073005.5893493824873412773.stgit@bahia.tls.ibm.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | hw/ppc/spapr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index f976d76eca..2725b139a7 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -81,6 +81,8 @@ #include "hw/mem/memory-device.h" #include "hw/ppc/spapr_tpm_proxy.h" +#include "monitor/monitor.h" + #include <libfdt.h> /* SLOF memory layout: @@ -4354,6 +4356,8 @@ static void spapr_pic_print_info(InterruptStatsProvider *obj, SpaprMachineState *spapr = SPAPR_MACHINE(obj); spapr->irq->print_info(spapr, mon); + monitor_printf(mon, "irqchip: %s\n", + kvm_irqchip_in_kernel() ? "in-kernel" : "emulated"); } int spapr_get_vcpu_id(PowerPCCPU *cpu) |