qmemman: detect domain list change by watching /vm, not /local/domain

The latter triggers on every memory/meminfo key update, which needlessly
adds xenstore requests.
This commit is contained in:
Rafal Wojtczuk 2010-09-06 10:46:36 +02:00
parent 1c337db989
commit 22df517425

View File

@ -30,7 +30,7 @@ class WatchType:
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.watch_token_dict = {}
def dom_list_change(self, param):