WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Xend: Refactor VMMetrics Destruction

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Xend: Refactor VMMetrics Destruction
From: Yosuke Iwamatsu <y-iwamatsu@xxxxxxxxxxxxx>
Date: Fri, 19 Sep 2008 19:09:52 +0900
Cc: jfehlig@xxxxxxxxxx
Delivery-date: Fri, 19 Sep 2008 03:10:21 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)
This is a clean up patch about the destruction of xen-api instances.

Xen-api classes based on XendBase class have their instances stored in
XendAPIStore. Instances which belong to a domain (such as vmmeetrics and
dpci) should be remove from XendAPIStore when the domain is destroyed.

I looked into domain destruction code path in xend and it seemed the
destruction was essentially done in XendDomain.py by deleting domains
from the domain list like:
  del self.domains[domid] (for normall domains)
  del self.managed_domains[dom.get_uuid()] (for managed domains)
This patch simply invokes destroy_xapi_instances() right after these
lines to assure theese instances will be removed at the same time as the
domain's disappearance.

Regards,
-----------------------
Yosuke Iwamatsu
        NEC Corporation

Attachment: destroy_vmmetrics.patch
Description: all/allfiles

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Xend: Refactor VMMetrics Destruction, Yosuke Iwamatsu <=