]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuhotplugtest: Load active XML
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 17 Oct 2017 11:13:08 +0000 (13:13 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 23 Oct 2017 06:53:51 +0000 (08:53 +0200)
The point of this test is to load live XML and test hotplug. But
even though the XMLs we are parsing are live, the parsing is done
with VIR_DOMAIN_DEF_PARSE_INACTIVE flag.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/qemuhotplugtest.c

index df28a7fbd350a0993f7bfaf645db042b74ea478d..8d77c0056a3e9cf111fdb1dbefc68092c699fa92 100644 (file)
@@ -62,6 +62,7 @@ qemuHotplugCreateObjects(virDomainXMLOptionPtr xmlopt,
 {
     int ret = -1;
     qemuDomainObjPrivatePtr priv = NULL;
+    const unsigned int parseFlags = 0;
 
     if (!(*vm = virDomainObjNew(xmlopt)))
         goto cleanup;
@@ -87,7 +88,7 @@ qemuHotplugCreateObjects(virDomainXMLOptionPtr xmlopt,
                                                driver.caps,
                                                driver.xmlopt,
                                                NULL,
-                                               VIR_DOMAIN_DEF_PARSE_INACTIVE)))
+                                               parseFlags)))
         goto cleanup;
 
     if (qemuDomainAssignAddresses((*vm)->def, priv->qemuCaps,