dom0/qvm-core: allow the user to select initial-memory != max-memory if meminfo-write service is enabled
This commit is contained in:
parent
1f513edd2f
commit
3d096f69af
@ -2304,8 +2304,9 @@ class QubesHVm(QubesVm):
|
||||
kwargs["memory"] = default_hvm_memory
|
||||
|
||||
super(QubesHVm, self).__init__(**kwargs)
|
||||
# HVM doesn't support dynamic memory management
|
||||
self.maxmem = self.memory
|
||||
# HVM normally doesn't support dynamic memory management
|
||||
if not ('meminfo-writer' in self.services and self.services['meminfo-writer']):
|
||||
self.maxmem = self.memory
|
||||
|
||||
# Disable qemu GUID if the user installed qubes gui agent
|
||||
if self.guiagent_installed:
|
||||
|
Loading…
Reference in New Issue
Block a user