[libvirt] [PATCH v2 09/12] migration: merge all proto branches into single function