[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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 solarflare com>
Signed-off-by: Shradha Shah <sshah 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]