Add helpers qemuPrepareHostdevPCIDevice and qemuDomainReAttachHostdevDevices
Add helpers qemuPrepareHostdevPCIDevice and qemuDomainReAttachHostdevDevices

- src/qemu/qemu_driver.c: These new helpers take hostdev list and count
  directly rather than getting them indirectly from domain definition.
  This will allow reuse for the attach-device case.

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