]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't replace persistent domain config with migrated config
authorJiri Denemark <jdenemar@redhat.com>
Wed, 24 Mar 2010 14:31:21 +0000 (15:31 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 26 Mar 2010 21:57:34 +0000 (22:57 +0100)
commit5982168290c9d75441abccbce100306c4e4535d6
tree0d701c37135a079c4ff114959b1e8f0081cd174a
parent19a863c4356fd1652083569388601a22c89c44f5
Don't replace persistent domain config with migrated config

When a domain is defined on host1, migrated to host2 and then migrated
back to host1, its current configuration would overwrite the libvirtd's
in-memory copy of persistent configuration of that domain. This is not
desired as we want to preserve the persistent configuration untouched.

This patch introduces new 'live' parameter to virDomainAssignDef.
Passing 'true' for 'live' means the configuration passed to
virDomainAssignDef describes a configuration of live instance of the
domain. This applies for saved domains which are being restored or for
incoming domains during migration.

All callers have been changed to pass the appropriate value.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/lxc/lxc_driver.c
src/opennebula/one_driver.c
src/openvz/openvz_driver.c
src/qemu/qemu_driver.c
src/test/test_driver.c
src/uml/uml_driver.c