From 406d233b6b4454e0419c86e2a77adde62d428cd0 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Thu, 19 Jul 2012 14:43:24 +0200 Subject: [PATCH] dom0/core: disable dynamic memory when VM have PCI devices assigned --- 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 d66867c3..62ec10d6 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -340,6 +340,10 @@ class QubesVm(object): if 'meminfo-writer' not in self.services: self.services['meminfo-writer'] = not (len(self.pcidevs) > 0) + # Additionally force meminfo-writer disabled when VM have PCI devices + if len(self.pcidevs) > 0: + self.services['meminfo-writer'] = False + # Some additional checks for template based VM if self.template is not None: if not self.template.is_template():