From 262400c6d886bedb4d1335b96a1062d5b8541825 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 27 Mar 2012 13:13:10 +0200 Subject: [PATCH] dom0/core: ensure that vm.services['meminfo-writer'] is present --- dom0/qvm-core/qubes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index a3b1c936..78ed65c3 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -332,6 +332,10 @@ class QubesVm(object): qubes_host = QubesHost() self.vcpus = qubes_host.no_cpus + # Always set if meminfo-writer should be active or not + if 'meminfo-writer' not in self.services: + self.services['meminfo-writer'] = not (len(self.pcidevs) > 0) + # Some additional checks for template based VM if self.template is not None: if not self.template.is_template():