ia64/xen-unstable

changeset 16591:12cf63d3e4a2

ia64, xend: Close nvram file when rebooting HVM domain
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Dec 12 10:08:54 2007 +0000 (2007-12-12)
parents 7b4e560d6caf
children ca077fa59206
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Wed Dec 12 10:08:14 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Wed Dec 12 10:08:54 2007 +0000
     1.3 @@ -1880,8 +1880,6 @@ class XendDomainInfo:
     1.4  
     1.5          self._cleanupVm()
     1.6          if self.dompath is not None:
     1.7 -            if self.domid is not None:
     1.8 -                xc.domain_destroy_hook(self.domid)
     1.9              self.destroyDomain()
    1.10  
    1.11          self._cleanup_phantom_devs(paths)
    1.12 @@ -1899,6 +1897,7 @@ class XendDomainInfo:
    1.13  
    1.14          try:
    1.15              if self.domid is not None:
    1.16 +                xc.domain_destroy_hook(self.domid)
    1.17                  xc.domain_destroy(self.domid)
    1.18                  for state in DOM_STATES_OLD:
    1.19                      self.info[state] = 0