libxl: honor domain lifecycle event configuration
libxl: honor domain lifecycle event configuration

The libxl driver was ignoring the <on_*> domain event configuration,
causing e.g. a domain to be rebooted even when on_reboot is set to
destroy.

This patch honors the <on_*> configuration in the shutdown event
handler.

Signed-off-by: Jim Fehlig <39929b5b86d72d51fceac59b52303e3fe8a3083e@suse.com>

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