[libvirt] [PATCH 2/6] conf: Extract code to filter domain list into a separate function