From: Chris Lalancette Date: Fri, 7 Aug 2009 13:20:30 +0000 (+0200) Subject: Fix QEMU domain status after restore. X-Git-Tag: v0.7.1~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbcf5ba7d48730cc028b82c92a2fdd375d201c1d;p=thirdparty%2Flibvirt.git Fix QEMU domain status after restore. When doing a restore, we were forgetting to update the state file for the VM. That means that if you do a save/restore, then shut down libvirtd, then start it back up, you'll see the state of the guest as "paused", even though it is really running. We were just forgetting a "virDomainSaveStatus" call in the restor path. Signed-off-by: Chris Lalancette --- diff --git a/src/qemu_driver.c b/src/qemu_driver.c index bd58435d9f..ebcb93b859 100644 --- a/src/qemu_driver.c +++ b/src/qemu_driver.c @@ -4098,6 +4098,7 @@ static int qemudDomainRestore(virConnectPtr conn, } VIR_FREE(info); vm->state = VIR_DOMAIN_RUNNING; + virDomainSaveStatus(conn, driver->stateDir, vm); } ret = 0;