|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Trigger domain cleanup on @releaseDomain watch-event ins
# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID c9e1ddf853243e47b91cbd46a465092e932ea6d0
# Parent 639a36483fee81b15a326e3c1be8d1c2d65486de
Trigger domain cleanup on @releaseDomain watch-event instead of domain exc.
virq.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>
diff -r 639a36483fee -r c9e1ddf85324 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py Wed Sep 7 13:40:06 2005
+++ b/tools/python/xen/xend/XendDomain.py Wed Sep 7 13:41:49 2005
@@ -67,7 +67,7 @@
xroot.add_component("xen.xend.XendDomain", self)
self.domains = XendDomainDict()
self.dbmap = DBMap(db=XenNode("/domain"))
- eserver.subscribe('xend.virq', self.onVirq)
+ self.watchReleaseDomain()
self.initial_refresh()
def list(self):
@@ -95,10 +95,12 @@
doms = self.list_sorted()
return map(lambda x: x.name, doms)
- def onVirq(self, event, val):
- """Event handler for virq.
- """
+ def onReleaseDomain(self):
self.refresh(cleanup=True)
+
+ def watchReleaseDomain(self):
+ from xen.xend.xenstore.xswatch import xswatch
+ self.releaseDomain = xswatch("@releaseDomain", self.onReleaseDomain)
def xen_domains(self):
"""Get table of domains indexed by id from xc.
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Trigger domain cleanup on @releaseDomain watch-event instead of domain exc. virq.,
Xen patchbot -unstable <=
|
|
|
|
|