]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix using guest architecture as lookup key
authorAndrea Bolognani <abologna@redhat.com>
Tue, 15 Sep 2015 13:58:09 +0000 (15:58 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 16 Sep 2015 08:31:11 +0000 (10:31 +0200)
commiteb36666d22d52ecf0a1755dd0a8a45de982e00fb
tree65f9e2120ac9c94bbb9a2bd82829cf29ea4f8388
parenta4604eb086721542f9faa866039922c77e899d76
qemu: Fix using guest architecture as lookup key

When looking for a QEMU binary suitable for running ppc64le guests
we have to take into account the fact that we use the QEMU target
as key for the hash, so direct comparison is not good enough.

Factor out the logic from virQEMUCapsFindBinaryForArch() to a new
virQEMUCapsFindTarget() function and use that both when looking
for QEMU binaries available on the system and when looking up
QEMU capabilities later.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1260753
src/qemu/qemu_capabilities.c