dom0/core: ensure that vm.services['meminfo-writer'] is present
This commit is contained in:
parent
194ac8ddcb
commit
262400c6d8
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user