]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Properly rename persistent def after migration
authorJiri Denemark <jdenemar@redhat.com>
Mon, 4 May 2015 20:21:23 +0000 (22:21 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 4 May 2015 20:59:51 +0000 (22:59 +0200)
commitfc3601a308922332be6213032dfe43fd963e3f46
tree1a2c014fc2861839495dee9be762759cddb105df
parente94979e901517af9fdde358d7b7c92cc055dd50c
qemu: Properly rename persistent def after migration

When migrating a domain while changing its name and using
VIR_MIGRATE_PERSIST_DEST flag, libvirt would fail to properly change the
name in the persistent definition. The inconsistency results in weird
behavior when dumping domain XML, destroying the domain, restarting
libvirtd and likely in several other situations.

Since the new name is already stored in vm->def->name, we just need to
make sure the persistent definition uses this new name too.

https://bugzilla.redhat.com/show_bug.cgi?id=1076354

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_migration.c