qemuhotplugtest: Load active XML

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>
This commit is contained in:
Michal Privoznik 2017-10-17 13:13:08 +02:00
parent a15c97f5e4
commit 821b0b295d

View File

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