mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fix QEMU domain state after a save attempt fails
When a VM save attempt failed, the VM would be left in a paused state. It is neccessary to resume CPU execution upon failure if it was running originally * src/qemu/qemu_driver.c: Resume CPUs upon save failure
This commit is contained in:
@@ -4221,6 +4221,16 @@ static int qemudDomainSave(virDomainPtr dom,
|
|||||||
}
|
}
|
||||||
|
|
||||||
endjob:
|
endjob:
|
||||||
|
if (ret != 0 && header.was_running) {
|
||||||
|
qemuDomainObjEnterMonitorWithDriver(driver, vm);
|
||||||
|
rc = qemuMonitorStartCPUs(priv->mon, dom->conn);
|
||||||
|
qemuDomainObjExitMonitorWithDriver(driver, vm);
|
||||||
|
if (rc < 0)
|
||||||
|
VIR_WARN0("Unable to resume guest CPUs after save failure");
|
||||||
|
else
|
||||||
|
vm->state = VIR_DOMAIN_RUNNING;
|
||||||
|
}
|
||||||
|
|
||||||
if (vm &&
|
if (vm &&
|
||||||
qemuDomainObjEndJob(vm) == 0)
|
qemuDomainObjEndJob(vm) == 0)
|
||||||
vm = NULL;
|
vm = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user