From 2ddd48f8e45c49b6997c7f37ea07be4274e5c6ae 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 25634f0c..b0bea2d6 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -331,6 +331,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():