Index: root/xen-unstable.hg/tools/python/xen/xend/XendDomain.py =================================================================== --- root.orig/xen-unstable.hg/tools/python/xen/xend/XendDomain.py +++ root/xen-unstable.hg/tools/python/xen/xend/XendDomain.py @@ -481,7 +481,6 @@ class XendDomain: if domid in self.domains: del self.domains[domid] - XendDevices.destroy_device_state(info) info.destroy_xapi_device_instances() else: log.warning("Attempted to remove non-existent domain.") @@ -1095,6 +1094,7 @@ class XendDomain: dominfo.metrics.destroy() self._managed_domain_unregister(dominfo) self._remove_domain(dominfo) + XendDevices.destroy_device_state(info) dominfo.destroy_xapi_device_instances()