[libvirt] [PATCH v3 10/14] migration: merge all proto branches into single function