]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix define logic
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 27 Aug 2012 15:40:33 +0000 (17:40 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 27 Aug 2012 17:01:09 +0000 (19:01 +0200)
commit9eee40cc540e25bb0783ef393b7bf7a74444b55c
tree9bd1ca6be91b60a7e4003c0efd6aca32a8428a87
parent3e0cc6306aa7db2d3e55193aff21684c70b67ec6
qemu: Fix define logic

With current flow in qemudDomainDefine we might lose data
when updating an existing domain. We parse given XML and
overwrite the configuration.  Then we try to save the new
config. However, this step may fail and we don't perform any
roll back.  In fact, we remove the domain from the list of
domains held up by qemu driver. This is okay as long as the
domain was brand new one.
src/qemu/qemu_driver.c