[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v7 19/19] spapr: add a 'pseries-4.0-dual' machine ty
From: |
Cédric Le Goater |
Subject: |
[Qemu-devel] [PATCH v7 19/19] spapr: add a 'pseries-4.0-dual' machine type |
Date: |
Sun, 9 Dec 2018 20:46:10 +0100 |
This pseries machine makes use of a new sPAPR IRQ backend supporting
both interrupt modes : XIVE and XICS, the default being XICS.
Signed-off-by: Cédric Le Goater <address@hidden>
---
hw/ppc/spapr.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 3cc134a0b673..d9fd4851824e 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -4000,6 +4000,21 @@ static void
spapr_machine_4_0_xive_class_options(MachineClass *mc)
DEFINE_SPAPR_MACHINE(4_0_xive, "4.0-xive", false);
+static void spapr_machine_4_0_dual_instance_options(MachineState *machine)
+{
+ spapr_machine_4_0_instance_options(machine);
+}
+
+static void spapr_machine_4_0_dual_class_options(MachineClass *mc)
+{
+ sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(mc);
+
+ spapr_machine_4_0_class_options(mc);
+ smc->irq = &spapr_irq_dual;
+}
+
+DEFINE_SPAPR_MACHINE(4_0_dual, "4.0-dual", false);
+
/*
* pseries-3.1
*/
--
2.17.2
- Re: [Qemu-devel] [PATCH v7 17/19] spapr: Add a pseries-4.0 machine type, (continued)
Re: [Qemu-devel] [PATCH v7 17/19] spapr: Add a pseries-4.0 machine type, David Gibson, 2018/12/10
[Qemu-devel] [PATCH v7 18/19] spapr: add a 'pseries-4.0-xive' machine type, Cédric Le Goater, 2018/12/09
- Re: [Qemu-devel] [PATCH v7 18/19] spapr: add a 'pseries-4.0-xive' machine type, Cédric Le Goater, 2018/12/10
- Re: [Qemu-devel] [PATCH v7 18/19] spapr: add a 'pseries-4.0-xive' machine type, David Gibson, 2018/12/10
- Re: [Qemu-devel] [PATCH v7 18/19] spapr: add a 'pseries-4.0-xive' machine type, Cédric Le Goater, 2018/12/11
- Re: [Qemu-devel] [PATCH v7 18/19] spapr: add a 'pseries-4.0-xive' machine type, Cédric Le Goater, 2018/12/11
- Re: [Qemu-devel] [PATCH v7 18/19] spapr: add a 'pseries-4.0-xive' machine type, David Gibson, 2018/12/11
- Re: [Qemu-devel] [PATCH v7 18/19] spapr: add a 'pseries-4.0-xive' machine type, Cédric Le Goater, 2018/12/12
[Qemu-devel] [PATCH v7 19/19] spapr: add a 'pseries-4.0-dual' machine type,
Cédric Le Goater <=