]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuConnectGetDomainCapabilities: Report error on unknown arch
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Jul 2014 14:40:01 +0000 (16:40 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 24 Jul 2014 16:01:57 +0000 (18:01 +0200)
commit3d968f409fa7f5bf95069ea08983b1454992d166
treeb8f454f2866cae57e665e771e68160d00b38d780
parent9318121db83f8c8151d88bf7de72774decc2b544
qemuConnectGetDomainCapabilities: Report error on unknown arch

If user hasn't provided any @emulatorbin, the qemuCaps are
searched by @arch provided (which in fact can be guessed from the
host). However, there's no guarantee that the qemu binary for
@arch will exist.  Therefore qemu capabilities may be nonexistent
too. If that's the case, we should throw an error message prior
jumping onto 'cleanup' label as the helper lookup function
remains silent on no search result.

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