openvz: detect when a domain was shut down from the inside
openvz: detect when a domain was shut down from the inside

This patch adds an internal function openvzGetVEStatus to
get the real state of the domain. This function is used in
various places in the driver, in particular to detect when
the domain has been shut down by the user with the "halt"
command.

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