[libvirt] [PATCH] conf: rewrite filtering for capabilities lookup