summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc/spapr.h
diff options
context:
space:
mode:
authorCédric Le Goater2018-12-17 23:34:43 +0100
committerDavid Gibson2018-12-20 23:40:43 +0100
commit3ba3d0bc338262f5a23c17e2b6e899da59a544d6 (patch)
tree5b196bbc63959e163f424c84a781c0f69b30f774 /include/hw/ppc/spapr.h
parentspapr: add an extra OV5 field to the sPAPR IRQ backend (diff)
downloadqemu-3ba3d0bc338262f5a23c17e2b6e899da59a544d6.tar.gz
qemu-3ba3d0bc338262f5a23c17e2b6e899da59a544d6.tar.xz
qemu-3ba3d0bc338262f5a23c17e2b6e899da59a544d6.zip
spapr: introduce an 'ic-mode' machine option
This option is used to select the interrupt controller mode (XICS or XIVE) with which the machine will operate. XICS being the default mode for now. When running a machine with the XIVE interrupt mode backend, the guest OS is required to have support for the XIVE exploitation mode. In the case of legacy OS, the mode selected by CAS should be XICS and the OS should fail to boot. However, QEMU could possibly detect it, terminate the boot process and reset to stop in the SLOF firmware. This is not yet handled. Signed-off-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/ppc/spapr.h')
-rw-r--r--include/hw/ppc/spapr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
index 06765b4e9d..2c77a8ba88 100644
--- a/include/hw/ppc/spapr.h
+++ b/include/hw/ppc/spapr.h
@@ -177,6 +177,7 @@ struct sPAPRMachineState {
int32_t irq_map_nr;
unsigned long *irq_map;
sPAPRXive *xive;
+ sPAPRIrq *irq;
bool cmd_line_caps[SPAPR_CAP_NUM];
sPAPRCapabilities def, eff, mig;