]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't copy old machines from a domain which has none
authorMark McLoughlin <markmc@redhat.com>
Thu, 15 Oct 2009 11:09:17 +0000 (12:09 +0100)
committerMark McLoughlin <markmc@redhat.com>
Thu, 15 Oct 2009 12:27:57 +0000 (13:27 +0100)
commit2210f8a3a8e2774ca4fb8b42e21899e5b85ca913
tree2cd0fd8621c0a9d17085d7b073bbc59f7338d3b3
parent04e068626282d7b1783bac6633c30dfbe0bfe714
Don't copy old machines from a domain which has none

If the the qemu and kvm binaries are the same, we don't include machine
types in the kvm domain info.

However, the code which refreshes the machine types info from the
previous capabilities structure first looks at the kvm domain's info,
finds it matches and then copies the empty machine types list over
for the top-level qemu domain.

That doesn't make sense, we shouldn't copy an empty machin types list.

* src/qemu/qemu_conf.c: qemudGetOldMachinesFromInfo(): don't copy an
  empty machine types list.
src/qemu/qemu_conf.c