mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 16:15:23 +00:00
qemu: Always send persistent XML during migration
When persistent migration of a transient domain is requested but no custom XML is passed to the migration API we would just let the destination daemon make a persistent definition from the live definition itself. This is not a problem now, but once the destination daemon starts replacing the original CPU definition with the one from migration cookie before starting a domain, it would need to add more ugly hacks to reverse the operation. Let's just always send the persistent definition in the cookie to make things a bit cleaner. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
356a2161e2
commit
b0a16641fa
@ -3644,8 +3644,9 @@ qemuMigrationRun(virQEMUDriverPtr driver,
|
||||
if (!(persistDef = qemuMigrationPrepareDef(driver, persist_xml,
|
||||
NULL, NULL)))
|
||||
goto cleanup;
|
||||
} else if (vm->newDef) {
|
||||
if (!(persistDef = qemuDomainDefCopy(driver, vm->newDef,
|
||||
} else {
|
||||
virDomainDefPtr def = vm->newDef ? vm->newDef : vm->def;
|
||||
if (!(persistDef = qemuDomainDefCopy(driver, def,
|
||||
VIR_DOMAIN_XML_SECURE |
|
||||
VIR_DOMAIN_XML_MIGRATABLE)))
|
||||
goto cleanup;
|
||||
|
Loading…
Reference in New Issue
Block a user