dom0/qvm-core: allow the user to select initial-memory != max-memory if meminfo-write service is enabled

This commit is contained in:
Olivier Medoc 2013-01-10 19:28:40 +01:00 committed by Marek Marczykowski
parent 1f513edd2f
commit 3d096f69af

View File

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