]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Refresh caps in virQEMUCapsCacheLookupByArch
authorJiri Denemark <jdenemar@redhat.com>
Wed, 16 Nov 2016 13:17:12 +0000 (14:17 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 25 Nov 2016 19:34:26 +0000 (20:34 +0100)
commitf9d57f2b577864c20be98165386b582f33cd08a1
tree1ed6ea6eb5ea6b199348f0c813a0ad7fda85b8d5
parent72e5aa4e1eaa2b087c811f92494921a0f51a9df7
qemu: Refresh caps in virQEMUCapsCacheLookupByArch

The function just returned cached capabilities without checking whether
they are still valid. We should check that and refresh the capabilities
to make sure we don't return stale data. In other words, we should do
what all other lookup functions do.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_driver.c