settings: disable dynamic memory management setting for HVM (#690)

This commit is contained in:
Marek Marczykowski 2012-12-12 16:32:08 +01:00
parent 94e4008958
commit 3b223aacd0

View File

@ -392,8 +392,11 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
self.vcpus.setMaximum(QubesHost().no_cpus)
self.vcpus.setValue(int(self.vm.vcpus))
self.include_in_balancing.setEnabled(True)
self.include_in_balancing.setChecked(self.vm.services['meminfo-writer']==True)
if self.vm.type == "HVM":
self.include_in_balancing.setChecked(False)
self.include_in_balancing.setEnabled(False)
#paths
self.dir_path.setText(self.vm.dir_path)