core-admin/qubes/tests/vm
Marek Marczykowski-Górecki 4dc8631010
Use maxmem=0 to disable qmemman, add more automation to it
Use maxmem=0 for disabling dynamic memory balance, instead of cryptic
service.meminfo-writer feature. Under the hood, meminfo-writer service
is also set based on maxmem property (directly in qubesdb, not
vm.features dict).
Having this as a property (not "feature"), allow to have sensible
handling of default value. Specifically, disable it automatically if
otherwise it would crash a VM. This is the case for:
 - domain with PCI devices (PoD is not supported by Xen then)
 - domain without balloon driver and/or meminfo-writer service

The check for the latter is heuristic (assume presence of 'qrexec' also
can indicate balloon driver support), but it is true for currently
supported systems.

This also allows more reliable control of libvirt config: do not set
memory != maxmem, unless qmemman is enabled.

memory != maxmem only makes sense if qmemman for given domain is
enabled.  Besides wasting some domain resources for extra page tables
etc, for HVM domains this is harmful, because maxmem-memory difference
is made of Popupate-on-Demand pool, which - when depleted - will kill
the domain. This means domain without balloon driver will die as soon
as will try to use more than initial memory - but without balloon driver
it sees maxmem memory and doesn't know about the lower limit.

Fixes QubesOS/qubes-issues#4135
2018-11-21 02:13:25 +01:00
..
mix vm/mix/net: use ipaddress module for ip and ip6 properties 2017-12-07 01:40:31 +01:00
__init__.py Add default_qrexec_timeout to qubes-prefs 2018-09-16 18:42:48 +00:00
adminvm.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
appvm.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
dispvm.py Don't fail create/clone if /var/lib/qubes/TYPE/NAME/ exists 2018-01-21 22:28:47 +00:00
init.py vm: include tag/feature name in event name 2018-01-06 15:05:34 +01:00
qubesvm.py Use maxmem=0 to disable qmemman, add more automation to it 2018-11-21 02:13:25 +01:00