core-admin/qmemman
Marek Marczykowski-Górecki 181eb3e764
qmemman: handle memory assigned to VM but not yet used
When VM got some memory assigned, balloon driver may not pick it up
immediatelly and the memory will still be seen as "free" by Xen, but VM
can use (request) it at any time. Qmemman needs to take care of such
memory (exclude it from "free" pool), otherwise it would redistribute it
to other domains, allowing the original domain to drain Xen memory pool.

Do this by redefining DomainState.memory_actual - it is now amount of
memory available to the VM (currently used, or possibly used). Then
calculate free memory by subtracting memory allocated but not used
(memory_target-memory_current).

Fixes QubesOS/qubes-issues#1389
2016-01-06 00:40:10 +01:00
..
.gitignore Move all files one level up 2013-03-16 19:56:51 +01:00
Makefile Move dispvm+qmemman service files to relevant directories 2014-11-19 12:50:25 +01:00
qmemman_algo.py qmemman: add logging 2015-03-31 20:42:53 +02:00
qmemman_client.py Declare file encoding for all python files, fill missing copyright headers 2014-05-18 21:03:27 +02:00
qmemman_server.py qmemman: handle memory assigned to VM but not yet used 2016-01-06 00:40:10 +01:00
qmemman.conf Move all files one level up 2013-03-16 19:56:51 +01:00
qmemman.py qmemman: handle memory assigned to VM but not yet used 2016-01-06 00:40:10 +01:00
qubes-qmemman.service Move dispvm+qmemman service files to relevant directories 2014-11-19 12:50:25 +01:00
server.py Declare file encoding for all python files, fill missing copyright headers 2014-05-18 21:03:27 +02:00