Yosuke Iwamatsu
2008-Sep-19 10:09 UTC
[Xen-devel] [PATCH] Xend: Refactor VMMetrics Destruction
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
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel