[libvirt] [PATCH 3/3] If VIR_MIGRATE_PERSIST_DEF is set then make the live configuration transient

Shradha Shah sshah at solarflare.com
Wed Aug 24 15:32:04 UTC 2011


Make the migrated VM config as transient. Ensures transient hotplug operations
do not persist past shutdown.

Currently the running VM config is transient but that of a migrated VM is
persistent.

Signed-off-by: Steve Hodgson <shodgson at solarflare.com>
Signed-off-by: Shradha Shah <sshah at solarflare.com>
---
 src/qemu/qemu_migration.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index a84faf6..aa458c3 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -2509,6 +2509,9 @@ qemuMigrationFinish(struct qemud_driver *driver,
                 goto endjob;
             }
 
+            /* Make the VM transient again to match qemuProcessStart */
+            virDomainObjSetDefTransient(driver->caps, vm, true);
+
             event = virDomainEventNewFromObj(vm,
                                              VIR_DOMAIN_EVENT_DEFINED,
                                              newVM ?
-- 
1.7.4.4




More information about the libvir-list mailing list