From: Stefan Berger Subject: [PATCH] [xend] move the call to XendDevices.destroy_device_state() Date: Tue, 02 Sep 2008 16:39:02 -0400 Message-ID: <1220387942.1891.3.camel@gsal-3.watson.ibm.com> Reply-To: stefanb@us.ibm.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-WuezevhKucx0f/+LYy7n" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel Cc: Keir Fraser List-Id: xen-devel@lists.xenproject.org --=-WuezevhKucx0f/+LYy7n Content-Type: text/plain Content-Transfer-Encoding: 7bit This patch moves the call to XendDevices.destroy_device_state() to the function _remove_domain. Previously only Xen-API calls were calling the destroy_device_state() function. Signed-off-by: Stefan Berger --=-WuezevhKucx0f/+LYy7n Content-Disposition: attachment; filename=xend_move_destroy_device_state.diff Content-Type: text/x-patch; name=xend_move_destroy_device_state.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 @@ -483,6 +483,7 @@ 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.") @@ -1096,7 +1097,6 @@ class XendDomain: dominfo.metrics.destroy() self._managed_domain_unregister(dominfo) self._remove_domain(dominfo) - XendDevices.destroy_device_state(dominfo) dominfo.destroy_xapi_device_instances() --=-WuezevhKucx0f/+LYy7n Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-WuezevhKucx0f/+LYy7n--