mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemu: migration: Relax enforcement of memory hotplug support
If the current live definition does not have memory hotplug enabled, but the persistent one does libvirt would reject migration if the destination does not support memory hotplug even if the user didn't want to persist the VM at the destination and thus the XML containing the memory hotplug definition would not be used. To fix this corner case the code will check for memory hotplug in the newDef only if VIR_MIGRATE_PERSIST_DEST was used.
This commit is contained in:
parent
0f3989c172
commit
a98e5a7815
@ -2989,7 +2989,8 @@ qemuMigrationBeginPhase(virQEMUDriverPtr driver,
|
||||
}
|
||||
|
||||
if (vm->def->mem.max_memory ||
|
||||
(vm->newDef &&
|
||||
((flags & VIR_MIGRATE_PERSIST_DEST) &&
|
||||
vm->newDef &&
|
||||
vm->newDef->mem.max_memory))
|
||||
cookieFlags |= QEMU_MIGRATION_COOKIE_MEMORY_HOTPLUG;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user