[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PATCH v4 15/15] spapr: enable PHB hotplug for default pser
From: |
Greg Kurz |
Subject: |
[qemu-s390x] [PATCH v4 15/15] spapr: enable PHB hotplug for default pseries machine type |
Date: |
Tue, 12 Feb 2019 19:25:32 +0100 |
User-agent: |
StGit/unknown-version |
From: Michael Roth <address@hidden>
The 'dr_phb_enabled' field of that class can be set as part of
machine-specific init code. It will be used to conditionally
enable creation of DRC objects and device-tree description to
facilitate hotplug of PHBs.
Since we can't migrate this state to older machine types,
default the option to true and disable it for older machine
types.
Signed-off-by: Michael Roth <address@hidden>
Signed-off-by: Greg Kurz <address@hidden>
---
hw/ppc/spapr.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 06ce0babcb54..4a6b2f7f3f62 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -4166,6 +4166,7 @@ static void spapr_machine_class_init(ObjectClass *oc,
void *data)
smc->default_caps.caps[SPAPR_CAP_NESTED_KVM_HV] = SPAPR_CAP_OFF;
spapr_caps_add_properties(smc, &error_abort);
smc->irq = &spapr_irq_xics;
+ smc->dr_phb_enabled = true;
}
static const TypeInfo spapr_machine_info = {
@@ -4231,6 +4232,7 @@ static void spapr_machine_3_1_class_options(MachineClass
*mc)
compat_props_add(mc->compat_props, hw_compat_3_1, hw_compat_3_1_len);
mc->default_cpu_type = POWERPC_CPU_TYPE_NAME("power8_v2.0");
smc->update_dt_enabled = false;
+ smc->dr_phb_enabled = false;
}
DEFINE_SPAPR_MACHINE(3_1, "3.1", false);
- Re: [qemu-s390x] [PATCH v4 06/15] spapr_pci: add PHB unrealize, (continued)
- [qemu-s390x] [PATCH v4 10/15] qdev: pass an Object * to qbus_set_hotplug_handler(), Greg Kurz, 2019/02/12
- [qemu-s390x] [PATCH v4 08/15] spapr: populate PHB DRC entries for root DT node, Greg Kurz, 2019/02/12
- [qemu-s390x] [PATCH v4 09/15] spapr_events: add support for phb hotplug events, Greg Kurz, 2019/02/12
- [qemu-s390x] [PATCH v4 13/15] spapr_drc: Allow FDT fragment to be added later, Greg Kurz, 2019/02/12
- [qemu-s390x] [PATCH v4 11/15] spapr_pci: provide node start offset via spapr_populate_pci_dt(), Greg Kurz, 2019/02/12
- [qemu-s390x] [PATCH v4 12/15] spapr_pci: add ibm, my-drc-index property for PHB hotplug, Greg Kurz, 2019/02/12
- [qemu-s390x] [PATCH v4 15/15] spapr: enable PHB hotplug for default pseries machine type,
Greg Kurz <=
- [qemu-s390x] [PATCH v4 14/15] spapr: add hotplug hooks for PHB hotplug, Greg Kurz, 2019/02/12