From ece96ba3fbc930d0155639aab362b54c23ca9c41 Mon Sep 17 00:00:00 2001 From: Rafal Wojtczuk Date: Mon, 27 Sep 2010 17:42:34 +0200 Subject: [PATCH] Make qfilexchgd listen for change in /vm to detect vm start/stop ... instead of watching /local/domain, which changes whenever meminfo-wwriter pushes data. --- dom0/pendrive_swapper/qfilexchgd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0/pendrive_swapper/qfilexchgd b/dom0/pendrive_swapper/qfilexchgd index 29622f5b..db397f61 100755 --- a/dom0/pendrive_swapper/qfilexchgd +++ b/dom0/pendrive_swapper/qfilexchgd @@ -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):