ia64/xen-unstable

changeset 18166:ddea9c73ea78

xend: fix dual destroy

After changeset 18030 and 18064 were checked in, I found some issues
when creating HVM domains with devices assigned.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jul 25 13:58:23 2008 +0100 (2008-07-25)
parents a7642acd9caf
children 267a59f9580b
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Fri Jul 25 10:06:53 2008 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Fri Jul 25 13:58:23 2008 +0100
     1.3 @@ -2374,6 +2374,9 @@ class XendDomainInfo:
     1.4      def destroy(self):
     1.5          """Cleanup VM and destroy domain.  Nothrow guarantee."""
     1.6  
     1.7 +        if self.domid is None:
     1.8 +            return
     1.9 +
    1.10          log.debug("XendDomainInfo.destroy: domid=%s", str(self.domid))
    1.11  
    1.12          paths = self._prepare_phantom_paths()