My own take on [1], with some additional cleanups on top.
[1]
https://listman.redhat.com/archives/libvir-list/2022-March/229697.html
Andrea Bolognani (3):
qemu: Clean up virQEMUCapsFindBinaryForArch()
qemu: Don't assume that /usr/libexec/qemu-kvm exists
qemu: Dissolve virQEMUCapsFindBinaryForArch()
src/qemu/qemu_capabilities.c | 42 +++++++++++++-----------------------
1 file changed, 15 insertions(+), 27 deletions(-)
--
2.35.1