ia64/xen-unstable

changeset 4721:04c1feb7c674

bitkeeper revision 1.1389.1.18 (4273a203Crs6SOBhDcJcXdza1-0gNw)

dump-enable.patch
Dump guest core if enable-dump is set.
Signed-off-by: Kip Macy <kmacy@fsmware.com>
author kaf24@firebug.cl.cam.ac.uk[kaf24]
date Sat Apr 30 15:19:31 2005 +0000 (2005-04-30)
parents 43be76d016ea
children 8e8d2f9402e1
files tools/python/xen/xend/XendDomain.py tools/python/xen/xend/XendRoot.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Sat Apr 30 08:50:08 2005 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Sat Apr 30 15:19:31 2005 +0000
     1.3 @@ -255,6 +255,8 @@ class XendDomain:
     1.4                      eserver.inject('xend.domain.exit', [name, id, reason])
     1.5                      self.domain_restart_schedule(id, reason)
     1.6              else:
     1.7 +               if xroot.get_enable_dump() == 'true':
     1.8 +                   xc.domain_dumpcore(dom = int(id), corefile = "/var/xen/dump/%s.%s.core"%(name,id))
     1.9                 eserver.inject('xend.domain.exit', [name, id, 'crash']) 
    1.10              destroyed += 1
    1.11              self.final_domain_destroy(id)
     2.1 --- a/tools/python/xen/xend/XendRoot.py	Sat Apr 30 08:50:08 2005 +0000
     2.2 +++ b/tools/python/xen/xend/XendRoot.py	Sat Apr 30 15:19:31 2005 +0000
     2.3 @@ -255,6 +255,9 @@ class XendRoot:
     2.4      def get_network_script(self):
     2.5          return self.get_config_value('network-script', 'network')
     2.6  
     2.7 +    def get_enable_dump(self):
     2.8 +        return self.get_config_value('enable-dump', 'false')
     2.9 +
    2.10      def get_vif_bridge(self):
    2.11          return self.get_config_value('vif-bridge', 'xen-br0')
    2.12