From: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
To: xen-devel@lists.xensource.com
Cc: jfehlig@novell.com
Subject: [PATCH] Xend: Refactor VMMetrics Destruction
Date: Fri, 19 Sep 2008 19:09:52 +0900 [thread overview]
Message-ID: <48D37A70.7070802@ab.jp.nec.com> (raw)
[-- 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
reply other threads:[~2008-09-19 10:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48D37A70.7070802@ab.jp.nec.com \
--to=y-iwamatsu@ab.jp.nec.com \
--cc=jfehlig@novell.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.