From: Nikolay Shirokovskiy Date: Wed, 18 Sep 2019 06:57:08 +0000 (+0300) Subject: vz: build fix for passing qemuCaps to virDomainDeviceDefPostParse X-Git-Tag: v5.8.0-rc1~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0991baa1c30c3ab4bd8f024585b184a6cb8f1728;p=thirdparty%2Flibvirt.git vz: build fix for passing qemuCaps to virDomainDeviceDefPostParse Missing piece for [1]. [1] b449c2704: qemu: Pass correct qemuCaps to virDomainDeviceDefPostParse Signed-off-by: Nikolay Shirokovskiy --- diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c index a4f6c39cb7..536a992404 100644 --- a/src/vz/vz_driver.c +++ b/src/vz/vz_driver.c @@ -1509,7 +1509,7 @@ static int vzDomainAttachDeviceFlags(virDomainPtr domain, const char *xml, goto cleanup; dev = virDomainDeviceDefParse(xml, dom->def, driver->caps, - driver->xmlopt, VIR_DOMAIN_XML_INACTIVE); + driver->xmlopt, NULL, VIR_DOMAIN_XML_INACTIVE); if (dev == NULL) goto cleanup; @@ -1565,7 +1565,7 @@ static int vzDomainDetachDeviceFlags(virDomainPtr domain, const char *xml, goto cleanup; dev = virDomainDeviceDefParse(xml, dom->def, driver->caps, - driver->xmlopt, + driver->xmlopt, NULL, VIR_DOMAIN_XML_INACTIVE | VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE); if (dev == NULL) @@ -1657,7 +1657,7 @@ static int vzDomainUpdateDeviceFlags(virDomainPtr domain, goto cleanup; if (!(dev = virDomainDeviceDefParse(xml, dom->def, driver->caps, - driver->xmlopt, + driver->xmlopt, NULL, VIR_DOMAIN_XML_INACTIVE))) goto cleanup;