[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v2 4/6] spapr: introduce machine unplug handler
From: |
David Hildenbrand |
Subject: |
[Qemu-ppc] [PATCH v2 4/6] spapr: introduce machine unplug handler |
Date: |
Fri, 8 Jun 2018 14:48:14 +0200 |
We'll be handling unplug of e.g. CPUs and PCDIMMs via the general
hotplug handler soon, so let's add that handler function.
Acked-by: David Gibson <address@hidden>
Reviewed-by: Greg Kurz <address@hidden>
Signed-off-by: David Hildenbrand <address@hidden>
---
hw/ppc/spapr.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 9b8b4068b1..c45f8bc75b 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -3584,6 +3584,11 @@ static void spapr_machine_device_plug(HotplugHandler
*hotplug_dev,
}
}
+static void spapr_machine_device_unplug(HotplugHandler *hotplug_dev,
+ DeviceState *dev, Error **errp)
+{
+}
+
static void spapr_machine_device_unplug_request(HotplugHandler *hotplug_dev,
DeviceState *dev, Error **errp)
{
@@ -3978,6 +3983,7 @@ static void spapr_machine_class_init(ObjectClass *oc,
void *data)
mc->get_default_cpu_node_id = spapr_get_default_cpu_node_id;
mc->possible_cpu_arch_ids = spapr_possible_cpu_arch_ids;
hc->unplug_request = spapr_machine_device_unplug_request;
+ hc->unplug = spapr_machine_device_unplug;
smc->dr_lmb_enabled = true;
mc->default_cpu_type = POWERPC_CPU_TYPE_NAME("power8_v2.0");
--
2.17.0
- [Qemu-ppc] [PATCH v2 0/6] spapr: machine hotplug handler cleanups, David Hildenbrand, 2018/06/08
- [Qemu-ppc] [PATCH v2 1/6] spapr: no need to verify the node, David Hildenbrand, 2018/06/08
- [Qemu-ppc] [PATCH v2 2/6] spapr: move lookup of the node into spapr_memory_plug(), David Hildenbrand, 2018/06/08
- [Qemu-ppc] [PATCH v2 3/6] spapr: move memory hotplug support check into spapr_memory_pre_plug(), David Hildenbrand, 2018/06/08
- [Qemu-ppc] [PATCH v2 5/6] spapr: handle pc-dimm unplug via hotplug handler chain, David Hildenbrand, 2018/06/08
- [Qemu-ppc] [PATCH v2 4/6] spapr: introduce machine unplug handler,
David Hildenbrand <=
- [Qemu-ppc] [PATCH v2 6/6] spapr: handle cpu core unplug via hotplug handler chain, David Hildenbrand, 2018/06/08
- Re: [Qemu-ppc] [PATCH v2 0/6] spapr: machine hotplug handler cleanups, David Gibson, 2018/06/08