From 11abef3439fd24fcf6d1c7289b3d5078303dd781 Mon Sep 17 00:00:00 2001 From: Rafal Wojtczuk Date: Tue, 7 Sep 2010 13:10:48 +0200 Subject: [PATCH] qmemman: xc.domain_set_target_mem can throw exceptions, too --- dom0/qmemman/qmemman.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dom0/qmemman/qmemman.py b/dom0/qmemman/qmemman.py index 69521470..8538cfa5 100755 --- a/dom0/qmemman/qmemman.py +++ b/dom0/qmemman/qmemman.py @@ -65,7 +65,12 @@ class SystemState: def mem_set(self, id, val): print 'mem-set domain', id, 'to', val self.xs.write('', '/local/domain/' + id + '/memory/target', str(val/1024)) - self.xc.domain_set_target_mem(int(id), val/1024) +#can happen in the middle of domain shutdown +#apparently xc.lowlevel throws exceptions too + try: + self.xc.domain_set_target_mem(int(id), val/1024) + except: + pass def mem_set_obsolete(self, id, val): uuid = self.domdict[id].uuid