Automatically kill target QEMU if migration aborts abnormally
Automatically kill target QEMU if migration aborts abnormally

Migration is a multi-step process

  1. Begin(src)
  2. Prepare(dst)
  3. Perform(src)
  4. Finish(dst)
  5. Confirm(src)

At step 2, a QEMU process is lauched in the destination to
accept the incoming migration. Occasionally the process
that is controlling the migration workflow aborts, and fails
to call step 4, Finish. This leaves a QEMU process running
on the target (albeit with paused CPUs). Unfortunately because
step 2 actives a job on the QEMU process, it is unkillable by
normal means.

By registering the VM for autokill against the src virConnectPtr
in step 2, we can ensure that the guest is forcefully killed off
if the connection is closed without step 4 being invoked

* src/qemu/qemu_migration.c: Register autokill in PrepareDirect
  and PrepareTunnel. Unregister autokill on successful run
  of Finish
* src/qemu/qemu_process.c: Unregister autokill when stopping a
  process

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