mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
qemu: Don't kill running migrated domain on daemon restart
When destination libvirtd is restarted during migration in Finish phase just after the point we started guest CPUs, we should not kill the domain. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
4cdc4a76d3
commit
f6ea8a9f19
@ -3173,9 +3173,13 @@ qemuProcessRecoverMigration(virQEMUDriverPtr driver,
|
||||
|
||||
case QEMU_MIGRATION_PHASE_FINISH3:
|
||||
/* migration finished, we started resuming the domain but didn't
|
||||
* confirm success or failure yet; killing it seems safest */
|
||||
VIR_DEBUG("Killing migrated domain %s", vm->def->name);
|
||||
return -1;
|
||||
* confirm success or failure yet; killing it seems safest unless
|
||||
* we already started guest CPUs */
|
||||
if (state != VIR_DOMAIN_RUNNING) {
|
||||
VIR_DEBUG("Killing migrated domain %s", vm->def->name);
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
} else if (job == QEMU_ASYNC_JOB_MIGRATION_OUT) {
|
||||
switch (phase) {
|
||||
|
Loading…
Reference in New Issue
Block a user