On-behalf-of: SAP stefan.ko...@sap.com
Signed-off-by: Stefan Kober <stefan.ko...@cyberus-technology.de>
---
 src/ch/ch_driver.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/ch/ch_driver.c b/src/ch/ch_driver.c
index c64b2ba511..39f9d934c0 100644
--- a/src/ch/ch_driver.c
+++ b/src/ch/ch_driver.c
@@ -25,6 +25,7 @@
 #include "ch_conf.h"
 #include "ch_domain.h"
 #include "ch_driver.h"
+#include "ch_hotplug.h"
 #include "ch_monitor.h"
 #include "ch_process.h"
 #include "domain_cgroup.h"
@@ -2346,9 +2347,10 @@ chDomainInterfaceAddresses(virDomain *dom,
 
 static int
 chDomainAttachDeviceFlags(virDomainPtr dom,
-                          const char */*xml*/,
+                          const char *xml,
                           unsigned int flags)
 {
+    virCHDriver *driver = dom->conn->privateData;
     virDomainObj *vm = NULL;
     int ret = -1;
 
@@ -2364,6 +2366,12 @@ chDomainAttachDeviceFlags(virDomainPtr dom,
     if (virDomainObjUpdateModificationImpact(vm, &flags) < 0)
         goto endjob;
 
+    if (chDomainAttachDeviceLiveAndConfig(vm, driver, xml, flags) < 0) {
+        goto endjob;
+    }
+
+    ret = 0;
+
  endjob:
     virDomainObjEndJob(vm);
 
-- 
2.50.1

Reply via email to