mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 16:15:23 +00:00
Revert "conf: Skip post parse callbacks when creating copy"
This breaks vCPU hotplug, because when starting a domain, we
create a copy of domain definition (which becomes live XML) and
during the post parse callbacks we might adjust some tunings so
that vCPU hotplug is possible.
This reverts commit 581b7756af
.
This commit is contained in:
parent
ddc8bc1cf4
commit
8cfdd6e4f5
@ -24684,8 +24684,7 @@ virDomainDefCopy(virDomainDefPtr src,
|
|||||||
virDomainDefPtr ret;
|
virDomainDefPtr ret;
|
||||||
unsigned int format_flags = VIR_DOMAIN_DEF_FORMAT_SECURE;
|
unsigned int format_flags = VIR_DOMAIN_DEF_FORMAT_SECURE;
|
||||||
unsigned int parse_flags = VIR_DOMAIN_DEF_PARSE_INACTIVE |
|
unsigned int parse_flags = VIR_DOMAIN_DEF_PARSE_INACTIVE |
|
||||||
VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE |
|
VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE;
|
||||||
VIR_DOMAIN_DEF_PARSE_SKIP_POST_PARSE;
|
|
||||||
|
|
||||||
if (migratable)
|
if (migratable)
|
||||||
format_flags |= VIR_DOMAIN_DEF_FORMAT_INACTIVE | VIR_DOMAIN_DEF_FORMAT_MIGRATABLE;
|
format_flags |= VIR_DOMAIN_DEF_FORMAT_INACTIVE | VIR_DOMAIN_DEF_FORMAT_MIGRATABLE;
|
||||||
@ -25172,8 +25171,7 @@ virDomainDeviceDefCopy(virDomainDeviceDefPtr src,
|
|||||||
xmlStr = virBufferContentAndReset(&buf);
|
xmlStr = virBufferContentAndReset(&buf);
|
||||||
ret = virDomainDeviceDefParse(xmlStr, def, caps, xmlopt,
|
ret = virDomainDeviceDefParse(xmlStr, def, caps, xmlopt,
|
||||||
VIR_DOMAIN_DEF_PARSE_INACTIVE |
|
VIR_DOMAIN_DEF_PARSE_INACTIVE |
|
||||||
VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE |
|
VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE);
|
||||||
VIR_DOMAIN_DEF_PARSE_SKIP_POST_PARSE);
|
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
VIR_FREE(xmlStr);
|
VIR_FREE(xmlStr);
|
||||||
|
@ -3380,8 +3380,7 @@ qemuDomainDefCopy(virQEMUDriverPtr driver,
|
|||||||
|
|
||||||
if (!(ret = virDomainDefParseString(xml, caps, driver->xmlopt, NULL,
|
if (!(ret = virDomainDefParseString(xml, caps, driver->xmlopt, NULL,
|
||||||
VIR_DOMAIN_DEF_PARSE_INACTIVE |
|
VIR_DOMAIN_DEF_PARSE_INACTIVE |
|
||||||
VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE |
|
VIR_DOMAIN_DEF_PARSE_SKIP_VALIDATE)))
|
||||||
VIR_DOMAIN_DEF_PARSE_SKIP_POST_PARSE)))
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
Loading…
Reference in New Issue
Block a user