[libvirt] [PATCH v2 07/27] conf: Move vcpu count check into helper