diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index abb777ac1c90b10710105415e709f7cac0c30b60..2250d376c622252311c695e650c26a97671c6492 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -2139,6 +2139,7 @@ qemuDomainReset(virDomainPtr dom, unsigned int flags) virDomainObjPtr vm; int ret = -1; qemuDomainObjPrivatePtr priv; + virDomainState state; virCheckFlags(0, -1); @@ -2165,6 +2166,10 @@ qemuDomainReset(virDomainPtr dom, unsigned int flags) priv->fakeReboot = false; + state = virDomainObjGetState(vm, NULL); + if (state == VIR_DOMAIN_CRASHED) + virDomainObjSetState(vm, VIR_DOMAIN_PAUSED, VIR_DOMAIN_PAUSED_CRASHED); + endjob: qemuDomainObjEndJob(driver, vm);