All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Xend: Refactor VMMetrics Destruction
@ 2008-09-19 10:09 Yosuke Iwamatsu
  0 siblings, 0 replies; only message in thread
From: Yosuke Iwamatsu @ 2008-09-19 10:09 UTC (permalink / raw)
  To: xen-devel; +Cc: jfehlig

[-- Attachment #1: Type: text/plain, Size: 805 bytes --]

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 #2: destroy_vmmetrics.patch --]
[-- Type: all/allfiles, Size: 3296 bytes --]

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-09-19 10:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-19 10:09 [PATCH] Xend: Refactor VMMetrics Destruction Yosuke Iwamatsu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.