Refactor tunnelled migration methods
Refactor tunnelled migration methods

To facilitate the introduction of the v3 migration protocol,
the doTunnelMigrate method is refactored into two pieces. One
piece is intended to mirror the flow of virDomainMigrateVersion2,
while the other is the helper for setting up sockets and processing
the data.

Previously socket setup would be done before the 'prepare' step,
so errors could be dealt with immediately, avoiding need to shut
off the destination QEMU. In the new split, socket setup is done
after the 'prepare' step. This is not a serious problem, since
the control flow already requires calling 'finish' to tear down
the destination QEMU upon several errors.

* src/qemu/qemu_migration.c:

shugaoye/libvirt,cbosdo/libvirt,novel/fbsd-libvirt,rmarwaha/libvirt1,iam-TJ/libvirt,warewolf/libvirt,olafhering/libvirt,rmarwaha/libvirt,emaste/libvirt,crobinso/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,foomango/libvirt,andreabolognani/libvirt,agx/libvirt,leilihh/libvirt,taget/libvirt,crobinso/libvirt,trainstack/libvirt,elmarco/libvirt,usc-isi/libvirt,libvirt/libvirt,eskultety/libvirt,novel/fbsd-libvirt,rmarwaha/libvirt,zippy2/libvirt,agx/libvirt,soulxu/libvirt-xuhj,rmarwaha/libvirt1,novel/fbsd-libvirt,siboulet/libvirt-openvz,bjzhang/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,emaste/libvirt,rmarwaha/libvirt,fabianfreyer/libvirt,agx/libvirt,nertpinx/libvirt,leilihh/libvirt,usc-isi/libvirt,eskultety/libvirt,jardasgit/libvirt,rmarwaha/libvirt1,novel/fbsd-libvirt,nertpinx/libvirt,kantai/libvirt-vfork,taget/libvirt,rlaager/libvirt,elmarco/libvirt,cbosdo/libvirt,cbosdo/libvirt,iam-TJ/libvirt,siboulet/libvirt-openvz,shugaoye/libvirt,bjzhang/libvirt,fabianfreyer/libvirt,jeckersb/libvirt,foomango/libvirt,eskultety/libvirt,iam-TJ/libvirt,cbosdo/libvirt,zhlcindy/libvirt-1.1.4-maintain,warewolf/libvirt,usc-isi/libvirt,jeckersb/libvirt,leilihh/libvirt,wiedi/libvirt,kantai/libvirt-vfork,olafhering/libvirt,leilihh/libvirt,rmarwaha/libvirt,usc-isi/libvirt,zippy2/libvirt,elmarco/libvirt,zhlcindy/libvirt-1.1.4-maintain,libvirt/libvirt,taget/libvirt,jardasgit/libvirt,jfehlig/libvirt,bjzhang/libvirt,usc-isi/libvirt,datto/libvirt,bjzhang/libvirt,wiedi/libvirt,danwent/libvirt-ovs,jeckersb/libvirt,olafhering/libvirt,datto/libvirt,zippy2/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,kantai/libvirt-vfork,agx/libvirt,zippy2/libvirt,jfehlig/libvirt,nertpinx/libvirt,taget/libvirt,novel/fbsd-libvirt,wiedi/libvirt,warewolf/libvirt,shugaoye/libvirt,jeckersb/libvirt,datto/libvirt,agx/libvirt,crobinso/libvirt,soulxu/libvirt-xuhj,jeckersb/libvirt,kantai/libvirt-vfork,taget/libvirt,iam-TJ/libvirt,eskultety/libvirt,novel/fbsd-libvirt,rlaager/libvirt,emaste/libvirt,wiedi/libvirt,andreabolognani/libvirt,emaste/libvirt,wiedi/libvirt,trainstack/libvirt,jardasgit/libvirt,trainstack/libvirt,datto/libvirt,dumbbell/libvirt,elmarco/libvirt,libvirt/libvirt,siboulet/libvirt-openvz,andreabolognani/libvirt,trainstack/libvirt,warewolf/libvirt,trainstack/libvirt,jardasgit/libvirt,jfehlig/libvirt,soulxu/libvirt-xuhj,zhlcindy/libvirt-1.1.4-maintain,VenkatDatta/libvirt,dumbbell/libvirt,dumbbell/libvirt,siboulet/libvirt-openvz,jardasgit/libvirt,olafhering/libvirt,libvirt/libvirt,danwent/libvirt-ovs,foomango/libvirt,dumbbell/libvirt,soulxu/libvirt-xuhj,elmarco/libvirt,emaste/libvirt,fabianfreyer/libvirt,emaste/libvirt,novel/fbsd-libvirt,iam-TJ/libvirt,zhlcindy/libvirt-1.1.4-maintain,bjzhang/libvirt,crobinso/libvirt,nertpinx/libvirt,warewolf/libvirt,danwent/libvirt-ovs,kantai/libvirt-vfork,datto/libvirt,nertpinx/libvirt,trainstack/libvirt,rmarwaha/libvirt1,foomango/libvirt,rmarwaha/libvirt1,siboulet/libvirt-openvz,rlaager/libvirt,foomango/libvirt,wiedi/libvirt,dumbbell/libvirt,shugaoye/libvirt,novel/fbsd-libvirt,wiedi/libvirt,leilihh/libvirt,rmarwaha/libvirt1,warewolf/libvirt,rmarwaha/libvirt,emaste/libvirt,rmarwaha/libvirt,jeckersb/libvirt,rlaager/libvirt,iam-TJ/libvirt,cbosdo/libvirt,danwent/libvirt-ovs,soulxu/libvirt-xuhj,eskultety/libvirt,leilihh/libvirt,dumbbell/libvirt,zhlcindy/libvirt-1.1.4-maintain,warewolf/libvirt,iam-TJ/libvirt,rlaager/libvirt,VenkatDatta/libvirt,trainstack/libvirt,novel/fbsd-libvirt,shugaoye/libvirt,danwent/libvirt-ovs,jeckersb/libvirt