]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix QEMU domain status after restore.
authorChris Lalancette <clalance@redhat.com>
Fri, 7 Aug 2009 13:20:30 +0000 (15:20 +0200)
committerChris Lalancette <clalance@redhat.com>
Tue, 11 Aug 2009 11:27:07 +0000 (13:27 +0200)
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 <clalance@redhat.com>
src/qemu_driver.c

index bd58435d9fb573e40b1a890c110135dee3802b60..ebcb93b859d380f3c4bf4a8cfdb60cda3ae9d481 100644 (file)
@@ -4098,6 +4098,7 @@ static int qemudDomainRestore(virConnectPtr conn,
         }
         VIR_FREE(info);
         vm->state = VIR_DOMAIN_RUNNING;
+        virDomainSaveStatus(conn, driver->stateDir, vm);
     }
     ret = 0;