[PATCH 04/13] ch: call into ch_hotplug implementation

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

 



On-behalf-of: SAP stefan.kober@xxxxxxx
Signed-off-by: Stefan Kober <stefan.kober@xxxxxxxxxxxxxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux