mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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:
parent
a15c97f5e4
commit
821b0b295d
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user