]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix persistent migration config save
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Fri, 26 Aug 2011 03:08:11 +0000 (12:08 +0900)
committerEric Blake <eblake@redhat.com>
Fri, 26 Aug 2011 15:45:57 +0000 (09:45 -0600)
commit709b4c500dd3b7f5ffd48f8e13e2eb5fbf1d0701
tree8022a1703834bbdc074898ea700d06a6bffcc88c
parent22d744d0c7b8f6b5ac6ece4563b30d61435eacbb
Fix persistent migration config save

When a user migrates a domain by command as

libvirt saves vm's domain XML config in destination host after migration.
But it saves vm->def. Then, the saved XML contains some garbage.

  <domain type='kvm' id='50'>
                     ^^^^^^^^
  ...
   <console type='pty' tty='/dev/pts/5'>
                       ^^^^^^^^^^^^^^^^^

Avoid saving unnecessary things by saving persistent vm definition.
src/qemu/qemu_migration.c