dom0/core: disable dynamic memory when VM have PCI devices assigned
This commit is contained in:
parent
d8908c29d2
commit
406d233b6b
@ -340,6 +340,10 @@ class QubesVm(object):
|
|||||||
if 'meminfo-writer' not in self.services:
|
if 'meminfo-writer' not in self.services:
|
||||||
self.services['meminfo-writer'] = not (len(self.pcidevs) > 0)
|
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
|
# Some additional checks for template based VM
|
||||||
if self.template is not None:
|
if self.template is not None:
|
||||||
if not self.template.is_template():
|
if not self.template.is_template():
|
||||||
|
Loading…
Reference in New Issue
Block a user