[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PULL 33/40] spapr_pci: emit hotplug add/remove events during

From: Alexander Graf
Subject: [Qemu-ppc] [PULL 33/40] spapr_pci: emit hotplug add/remove events during hotplug
Date: Wed, 3 Jun 2015 23:45:34 +0200

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

Userspace tools that don't implement this extension will need
to be run manually in response/advance of device_add/device_del,

Signed-off-by: Tyrel Datwyler <address@hidden>
Signed-off-by: Michael Roth <address@hidden>
Reviewed-by: David Gibson <address@hidden>
Signed-off-by: David Gibson <address@hidden>
Signed-off-by: Alexander Graf <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 d2e4161..4df3a33 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 
         error_propagate(errp, local_err);
+    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 
             error_propagate(errp, local_err);
+        spapr_hotplug_req_remove_event(drc);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]