dom0/core: force memory <= maxmem at VM startup (#497)
This commit is contained in:
parent
adec43af85
commit
47b70235e3
@ -846,6 +846,8 @@ class QubesVm(object):
|
||||
args['vmdir'] = self.dir_path
|
||||
args['pcidev'] = str(self.pcidevs).strip('[]')
|
||||
args['mem'] = str(self.memory)
|
||||
if self.maxmem < self.memory:
|
||||
args['mem'] = str(self.maxmem)
|
||||
args['maxmem'] = str(self.maxmem)
|
||||
if 'meminfo-writer' in self.services and not self.services['meminfo-writer']:
|
||||
# If dynamic memory management disabled, set maxmem=mem
|
||||
|
Loading…
Reference in New Issue
Block a user