mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-16 22:57:15 +00:00
qemu: Do not ignore mandatory features in migration cookie
Due to "feature"/"features" nasty typo, any features marked as mandatory by one side of a migration are silently considered optional by the other side. The following is the code that formats mandatory features in migration cookie: for (i = 0 ; i < QEMU_MIGRATION_COOKIE_FLAG_LAST ; i++) { if (mig->flagsMandatory & (1 << i)) virBufferAsprintf(buf, " <feature name='%s'/>\n", qemuMigrationCookieFlagTypeToString(i)); }
This commit is contained in:
parent
bc28e56b35
commit
69660042fb
@ -817,7 +817,7 @@ qemuMigrationCookieXMLParse(qemuMigrationCookiePtr mig,
|
|||||||
|
|
||||||
/* Check to ensure all mandatory features from XML are also
|
/* Check to ensure all mandatory features from XML are also
|
||||||
* present in 'flags' */
|
* present in 'flags' */
|
||||||
if ((n = virXPathNodeSet("./features", ctxt, &nodes)) < 0)
|
if ((n = virXPathNodeSet("./feature", ctxt, &nodes)) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
for (i = 0 ; i < n ; i++) {
|
for (i = 0 ; i < n ; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user