]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_capabilities: Introduce virQEMUCapsCacheLookupDefault
authorJiri Denemark <jdenemar@redhat.com>
Mon, 7 May 2018 20:51:57 +0000 (22:51 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 28 May 2018 13:54:10 +0000 (15:54 +0200)
commitda3bfc9ffc11292b46d19d3527087c3b68785fd6
tree7c1f2f48475a49940bbd90bbab1ff9e01e873d0a
parentd0ff5ce43bdccf9937ce9814eab4c39aac152b6d
qemu_capabilities: Introduce virQEMUCapsCacheLookupDefault

virConnectGetDomainCapabilities needs to lookup QEMU capabilities
matching a specified binary, architecture, virt type, and machine type
while using default values when any of the parameters are not provided
by the user. Let's extract the lookup code into
virQEMUCapsCacheLookupDefault to make it reusable.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_driver.c