]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix a couple of state problems
authorDaniel Veillard <veillard@redhat.com>
Thu, 25 Jun 2009 13:55:58 +0000 (13:55 +0000)
committerDaniel Veillard <veillard@redhat.com>
Thu, 25 Jun 2009 13:55:58 +0000 (13:55 +0000)
* src/qemu_driver.c: fix a domain state problem after
  migration, patch  by Federico Simoncelli, fixes #507537
* src/domain_conf.c:  fix a transcient domain state problem after
  destroy, patch  by Federico Simoncelli, fixes #507304
* AUTHORS: add Federico Simoncelli and Javier Fontan
daniel

AUTHORS
ChangeLog
src/domain_conf.c
src/qemu_driver.c

diff --git a/AUTHORS b/AUTHORS
index e6f1a9ecdc30d8fe8d7d332ccce0f10918b71b99..25fc26ffcce1fc63e8d703b6b97c588bacd5d255 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -72,6 +72,8 @@ Patches have also been contributed by:
   Laine Stump          <laine@redhat.com>
   Abel Míguez Rodríguez<amiguezr@pdi.ucm.es>
   Doug Goldstein       <cardoe@gentoo.org>
+  Javier Fontan        <jfontan@gmail.com>
+  Federico Simoncelli  <federico.simoncelli@gmail.com>
 
   [....send patches to get your name here....]
 
index fd50683fe3a11b03e27b0622dcdffce2db44e5da..2a5f21070f34505662f1ac6de868407b98e6ae15 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Thu Jun 25 15:46:11 CEST 2009 Daniel Veillard <veillard@redhat.com>
+
+       * src/qemu_driver.c: fix a domain state problem after
+         migration, patch  by Federico Simoncelli, fixes #507537
+       * src/domain_conf.c:  fix a transcient domain state problem after
+         destroy, patch  by Federico Simoncelli, fixes #507304
+       * AUTHORS: add Federico Simoncelli and Javier Fontan
+
 Thu Jun 25 10:32:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
 
        Fix broken dominfo command when no security driver is implemented
index e7523f586cc809c79024246332e0e0302be342a1..ffa2aef3fbac6cbfa463007989f14bbdd6968ba4 100644 (file)
@@ -4187,7 +4187,8 @@ int virDomainLoadAllConfigs(virConnectPtr conn,
                                       opaque);
         if (dom) {
             virDomainObjUnlock(dom);
-            dom->persistent = 1;
+            if (!liveStatus)
+                dom->persistent = 1;
         }
     }
 
index 89c252d017277c1be6ca9ab0f383a15cf4b4a80f..14d00cc95affe9333f925f33ce04dbdf59b4d055 100644 (file)
@@ -5116,6 +5116,7 @@ qemudDomainMigrateFinish2 (virConnectPtr dconn,
         event = virDomainEventNewFromObj(vm,
                                          VIR_DOMAIN_EVENT_RESUMED,
                                          VIR_DOMAIN_EVENT_RESUMED_MIGRATED);
+        virDomainSaveStatus(dconn, driver->stateDir, vm);
     } else {
         qemudShutdownVMDaemon (dconn, driver, vm);
         event = virDomainEventNewFromObj(vm,