dom0/core: disable dynamic memory when VM have PCI devices assigned

This commit is contained in:
Marek Marczykowski 2012-07-19 14:43:24 +02:00
parent d8908c29d2
commit 406d233b6b

View File

@ -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():