Avoid blocking all APIs during incoming migration
Avoid blocking all APIs during incoming migration

During incoming migration the QEMU monitor is not able to be
used. The incoming migration code did not keep hold of the
job lock because migration is split across multiple API calls.
This meant that further monitor commands on the guest would
hang until migration finished with no timeout.

In this change the qemuDomainMigratePrepare method sets the
job flag just before it returns. The qemuDomainMigrateFinish
method checks for this job flag & clears it once done. This
prevents any use of the monitor between prepare+finish steps.

The qemuDomainGetJobInfo method is also updated to refresh
the job elapsed time. This means that virsh domjobinfo can
return time data during incoming migration

* src/qemu/qemu_driver.c: Keep a job active during incoming
  migration. Refresh job elapsed time when returning job info

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