[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v8 16/16] spapr_pci: emit hotplug add/remove events du
From: |
Michael Roth |
Subject: |
[Qemu-ppc] [PATCH v8 16/16] spapr_pci: emit hotplug add/remove events during hotplug |
Date: |
Wed, 22 Apr 2015 01:28:20 -0500 |
From: Tyrel Datwyler <address@hidden>
This uses extension of existing EPOW interrupt/event mechanism
to notify userspace tools like librtas/drmgr to handle
in-guest configuration/cleanup operations in response to
device_add/device_del.
Userspace tools that don't implement this extension will need
to be run manually in response/advance of device_add/device_del,
respectively.
Signed-off-by: Tyrel Datwyler <address@hidden>
Signed-off-by: Michael Roth <address@hidden>
Reviewed-by: David Gibson <address@hidden>
---
hw/ppc/spapr_pci.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c
index 3178a70..2e7590c 100644
--- a/hw/ppc/spapr_pci.c
+++ b/hw/ppc/spapr_pci.c
@@ -1075,6 +1075,9 @@ static void spapr_phb_hot_plug_child(HotplugHandler
*plug_handler,
error_propagate(errp, local_err);
return;
}
+ if (plugged_dev->hotplugged) {
+ spapr_hotplug_req_add_event(drc);
+ }
}
static void spapr_phb_hot_unplug_child(HotplugHandler *plug_handler,
@@ -1101,6 +1104,7 @@ static void spapr_phb_hot_unplug_child(HotplugHandler
*plug_handler,
error_propagate(errp, local_err);
return;
}
+ spapr_hotplug_req_remove_event(drc);
}
}
--
1.9.1
- Re: [Qemu-ppc] [PATCH v8 11/16] spapr: add pseries-2.4 machine type, (continued)
- [Qemu-ppc] [PATCH v8 15/16] spapr_pci: enable basic hotplug operations, Michael Roth, 2015/04/22
- [Qemu-ppc] [PATCH v8 16/16] spapr_pci: emit hotplug add/remove events during hotplug,
Michael Roth <=
- [Qemu-ppc] [PATCH v8 01/16] docs: add sPAPR hotplug/dynamic-reconfiguration documentation, Michael Roth, 2015/04/22
- [Qemu-ppc] [PATCH v8 02/16] spapr_drc: initial implementation of sPAPRDRConnector device, Michael Roth, 2015/04/22
- [Qemu-ppc] [PATCH v8 04/16] spapr_rtas: add set-indicator RTAS interface, Michael Roth, 2015/04/22
- [Qemu-ppc] [PATCH v8 03/16] spapr_rtas: add get/set-power-level RTAS interfaces, Michael Roth, 2015/04/22
- [Qemu-ppc] [PATCH v8 05/16] spapr_rtas: add get-sensor-state RTAS interface, Michael Roth, 2015/04/22
- [Qemu-ppc] [PATCH v8 06/16] spapr: add rtas_st_buffer_direct() helper, Michael Roth, 2015/04/22
- [Qemu-ppc] [PATCH v8 07/16] spapr_rtas: add ibm, configure-connector RTAS interface, Michael Roth, 2015/04/22
- [Qemu-ppc] [PATCH v8 08/16] spapr_events: re-use EPOW event infrastructure for hotplug events, Michael Roth, 2015/04/22