[libvirt] [PATCH v2 2/4] util: add functions to keep capabilities