On Wed, May 16, 2018 at 10:39:26AM +0200, Jiri Denemark wrote:
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(a)redhat.com>
---
src/qemu/qemu_capabilities.c | 118 +++++++++++++++++++++++++++++++++++
src/qemu/qemu_capabilities.h | 8 +++
src/qemu/qemu_driver.c | 86 ++++---------------------
3 files changed, 137 insertions(+), 75 deletions(-)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano