]> Git Repo - qemu.git/commitdiff
spapr: Report kvm_irqchip_in_kernel() in 'info pic'
authorGreg Kurz <[email protected]>
Thu, 12 Sep 2019 14:30:09 +0000 (16:30 +0200)
committerDavid Gibson <[email protected]>
Fri, 4 Oct 2019 00:25:23 +0000 (10:25 +1000)
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 <[email protected]>
Message-Id: <156829860985.2073005.5893493824873412773[email protected]>
Reviewed-by: Cédric Le Goater <[email protected]>
Signed-off-by: David Gibson <[email protected]>
hw/ppc/spapr.c

index f976d76ecaad8b970c9c21c7b6d5748bba9cedd3..2725b139a7f0d8041d1f1547230c57d39ddd9af8 100644 (file)
@@ -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)
This page took 0.032068 seconds and 4 git commands to generate.