]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Stop looking after finding the first binary
authorAndrea Bolognani <abologna@redhat.com>
Tue, 18 Sep 2018 14:49:40 +0000 (16:49 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 21 Sep 2018 13:53:48 +0000 (15:53 +0200)
commit83d86e348ef35160c535dfb6b5af774d65eaf29d
tree10ba4194a502f7af391680591cb83ada4ab67059
parent0d131d3893e912e6071b8862e9fd3ac489452076
qemu: Stop looking after finding the first binary

When the guest is native, we are currently looking at
potential KVM binaries regardless of whether or not we have
already located a QEMU binary suitable to run the guest.

This made sense back when KVM support was not part of QEMU
proper, but these days the KVM binaries are in most cases
just trivial wrapper scripts around the native QEMU binary
so it doesn't make sense to poke at them unless they're
the only binaries on the system, such as when running on
RHEL.

This will allow us to simplify both virQEMUCapsInitGuest()
and virQEMUCapsInitGuestFromBinary().

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
src/qemu/qemu_capabilities.c