dom0 qmemman: watch /local/domain xenstore tree for new/deleted domains

This is the place where _running_ domains are placed.
This commit is contained in:
Marek Marczykowski 2011-06-01 23:31:56 +02:00
parent 06780a848f
commit 086c41cb9f

View File

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