Make qfilexchgd listen for change in /vm to detect vm start/stop

... instead of watching /local/domain, which changes whenever meminfo-wwriter
pushes data.
This commit is contained in:
Rafal Wojtczuk 2010-09-27 17:42:34 +02:00
parent acac39ec41
commit ece96ba3fb

View File

@ -276,7 +276,7 @@ class DomainState:
class XS_Watcher:
def __init__(self):
self.handle = xen.lowlevel.xs.xs()
self.handle.watch('/local/domain', WatchType(XS_Watcher.dom_list_change, None))
self.handle.watch('/vm', WatchType(XS_Watcher.dom_list_change, None))
self.domdict = {}
def dom_list_change(self, param):