ia64/xen-unstable

changeset 6919:edd70af0fb22

Move dom0 setup code out of initial_refresh.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Fri Sep 16 20:03:57 2005 +0000 (2005-09-16)
parents 5b56f1646e58
children 6a48f88101d3
files tools/python/xen/xend/XendDomain.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomain.py	Fri Sep 16 20:02:18 2005 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomain.py	Fri Sep 16 20:03:57 2005 +0000
     1.3 @@ -68,6 +68,7 @@ class XendDomain:
     1.4          self.dbmap = DBMap(db=XenNode("/domain"))
     1.5          self.watchReleaseDomain()
     1.6          self.initial_refresh()
     1.7 +        self.dom0_setup()
     1.8  
     1.9      def list(self):
    1.10          """Get list of domain objects.
    1.11 @@ -151,6 +152,7 @@ class XendDomain:
    1.12                  self._delete_domain(domid)
    1.13          self.refresh(cleanup=True)
    1.14  
    1.15 +    def dom0_setup():
    1.16          dom0 = self.domain_lookup(0)
    1.17          if not dom0:
    1.18              dom0 = self.domain_unknown(0)