]> git.ipfire.org Git - thirdparty/libvirt.git/commit
testQemuGetLatestCaps: Process capabilities for all architectures in one pass
authorPeter Krempa <pkrempa@redhat.com>
Tue, 7 Mar 2023 13:44:34 +0000 (14:44 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 3 Apr 2023 07:19:06 +0000 (09:19 +0200)
commita13f37265b286ef68f8dca982ecb6eaca4b22ce9
tree07a248eeda85427ca5dadd82313981b3f290dd30
parent75e606974b35690db9a2481a0bee7fc5d3da3e23
testQemuGetLatestCaps: Process capabilities for all architectures in one pass

Rather than finding the newest caps file iteratively for specific
architectures in multiple passes over the directory we can simply load
the latest for everything in one pass by storing the version in the hash
table and filling it progressively.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/testutilsqemu.c