From 4a76bf2981d671d8dfcb0c19f568caaa2cd2bd65 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sun, 1 May 2011 12:02:27 +0200 Subject: [PATCH] Call xm to set maxmem, instead of direct call to xend. Previous one hangs sometimes with 100% occupied by xend. This will also be simpler to port to xl/libxl interface. --- dom0/qvm-core/qubes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index f67cac83..4c4ecca4 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -889,7 +889,7 @@ class QubesVm(object): print "--> Loading the VM (type = {0})...".format(self.type) if not self.is_netvm(): - xend_session.xend_server.xend.domain.maxmem_set(self.name, self.maxmem) + subprocess.check_call(['/usr/sbin/xm', 'mem-max', self.name, str(self.maxmem)]) mem_required = self.get_mem_dynamic_max() qmemman_client = QMemmanClient()