On-behalf-of: SAP stefan.kober@sap.com
Signed-off-by: Stefan Kober <stefan.kober@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 e5e1bfd7d1..764efb87e9 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 G_GNUC_UNUSED,
+ 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 (chDomainAttachDeviceLiveAndUpdateConfig(vm, driver, xml, flags) < 0) {
+ goto endjob;
+ }
+
+ ret = 0;
+
endjob:
virDomainObjEndJob(vm);
--
2.50.1