libxl: Use id from virDomainObj inside the driver
libxl: Use id from virDomainObj inside the driver

There is a domain id in the virDomain structure as well as in the
virDomainObj structure. While the former can become stale the latter
is kept up to date. So it is safer to always (virDomainObjPtr)->def->id
internally.

This will fix issues seen when managing Xen guests through libvirt from
virt-manager (not being able to get domain info after define or reboot).
This was caused both though libxlDomainGetInfo() only but there were
a lot of places that might potentially cause issues, too.

Signed-off-by: Stefan Bader <00beb3b1b08625be3b68f3989c75be8de7f2fd89@canonical.com>

elmarco/libvirt,agx/libvirt,jardasgit/libvirt,rlaager/libvirt,shugaoye/libvirt,zippy2/libvirt,agx/libvirt,rlaager/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,rlaager/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,crobinso/libvirt,elmarco/libvirt,datto/libvirt,zippy2/libvirt,fabianfreyer/libvirt,libvirt/libvirt,jfehlig/libvirt,andreabolognani/libvirt,elmarco/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,libvirt/libvirt,shugaoye/libvirt,taget/libvirt,olafhering/libvirt,elmarco/libvirt,crobinso/libvirt,jardasgit/libvirt,agx/libvirt,andreabolognani/libvirt,crobinso/libvirt,VenkatDatta/libvirt,rlaager/libvirt,VenkatDatta/libvirt,taget/libvirt,datto/libvirt,libvirt/libvirt,olafhering/libvirt,datto/libvirt,eskultety/libvirt,datto/libvirt,agx/libvirt,nertpinx/libvirt,crobinso/libvirt,libvirt/libvirt,rlaager/libvirt,shugaoye/libvirt,datto/libvirt,zippy2/libvirt,taget/libvirt,jfehlig/libvirt,jardasgit/libvirt,eskultety/libvirt,andreabolognani/libvirt,olafhering/libvirt,elmarco/libvirt,zippy2/libvirt,shugaoye/libvirt,agx/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,olafhering/libvirt,andreabolognani/libvirt,shugaoye/libvirt,nertpinx/libvirt,nertpinx/libvirt,eskultety/libvirt,fabianfreyer/libvirt,eskultety/libvirt,jardasgit/libvirt,taget/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,eskultety/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,taget/libvirt