mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
qemu: Report more appropriate running reasons
This patch replaces some rather generic VIR_DOMAIN_RUNNING_UNPAUSED reasons when changing domain state to running with more specific ones. All of them are done when libvirtd reconnects to an existing domain after being restarted and sees an unfinished migration or save. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
55af06187c
commit
54b5b0ac39
@ -3292,7 +3292,7 @@ qemuProcessRecoverMigrationIn(virQEMUDriverPtr driver,
|
||||
VIR_DEBUG("Incoming migration finished, resuming domain %s",
|
||||
vm->def->name);
|
||||
if (qemuProcessStartCPUs(driver, vm,
|
||||
VIR_DOMAIN_RUNNING_UNPAUSED,
|
||||
VIR_DOMAIN_RUNNING_MIGRATED,
|
||||
QEMU_ASYNC_JOB_NONE) < 0) {
|
||||
VIR_WARN("Could not resume domain %s", vm->def->name);
|
||||
}
|
||||
@ -3399,7 +3399,7 @@ qemuProcessRecoverMigrationOut(virQEMUDriverPtr driver,
|
||||
(reason == VIR_DOMAIN_PAUSED_MIGRATION ||
|
||||
reason == VIR_DOMAIN_PAUSED_UNKNOWN)) {
|
||||
if (qemuProcessStartCPUs(driver, vm,
|
||||
VIR_DOMAIN_RUNNING_UNPAUSED,
|
||||
VIR_DOMAIN_RUNNING_MIGRATION_CANCELED,
|
||||
QEMU_ASYNC_JOB_NONE) < 0) {
|
||||
VIR_WARN("Could not resume domain %s", vm->def->name);
|
||||
}
|
||||
@ -3457,7 +3457,7 @@ qemuProcessRecoverJob(virQEMUDriverPtr driver,
|
||||
reason == VIR_DOMAIN_PAUSED_MIGRATION)) ||
|
||||
reason == VIR_DOMAIN_PAUSED_UNKNOWN)) {
|
||||
if (qemuProcessStartCPUs(driver, vm,
|
||||
VIR_DOMAIN_RUNNING_UNPAUSED,
|
||||
VIR_DOMAIN_RUNNING_SAVE_CANCELED,
|
||||
QEMU_ASYNC_JOB_NONE) < 0) {
|
||||
VIR_WARN("Could not resume domain '%s' after migration to file",
|
||||
vm->def->name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user