[libvirt] [PATCH 9/4] virsh: declare more common functions