]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainDefPostParse: Fetch qemuCaps from domain object
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 16 Sep 2016 14:29:41 +0000 (16:29 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 26 Sep 2016 14:50:12 +0000 (16:50 +0200)
commit70b36a7b7e4835c0fa6de5879fd17102c5ee4f7e
treeb8b97ba67deb593ec4c15097fd82c0b95c9163a4
parentcf198684a8e389be015d93a887357064f45ba993
qemuDomainDefPostParse: Fetch qemuCaps from domain object

We can't rely on def->emulator path. It may be provided by user
as we give them opportunity to provide their own XML for
migration. Therefore the path may point to just whatever binary
(or even to a non-existent file). Moreover, this path is meant
for destination, but the capabilities lookup is done on source.
What we can do is to assume same capabilities for post parse
callbacks as the running domain has. They will be used just to
add some default models/controllers/devices/... anyway.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_migration.c