libvirt/src/openvz
Peter Krempa 4f9907cd11 conf: Replace access to def->mem.max_balloon with accessor functions
As there are two possible approaches to define a domain's memory size -
one used with legacy, non-NUMA VMs configured in the <memory> element
and per-node based approach on NUMA machines - the user needs to make
sure that both are specified correctly in the NUMA case.

To avoid this burden on the user I'd like to replace the NUMA case with
automatic totaling of the memory size. To achieve this I need to replace
direct access to the virDomainMemtune's 'max_balloon' field with
two separate getters depending on the desired size.

The two sizes are needed as:
1) Startup memory size doesn't include memory modules in some
hypervisors.
2) After startup these count as the usable memory size.

Note that the comments for the functions are future aware and document
state that will be present after a few later patches.
2015-03-16 14:26:51 +01:00
..
openvz_conf.c memtune: change the way how we store unlimited value 2015-03-06 11:52:24 +01:00
openvz_conf.h add migration support for OpenVZ driver 2014-09-15 15:01:35 +02:00
openvz_driver.c conf: Replace access to def->mem.max_balloon with accessor functions 2015-03-16 14:26:51 +01:00
openvz_driver.h add migration support for OpenVZ driver 2014-09-15 15:01:35 +02:00
openvz_util.c Make tests independant of system page size 2015-02-02 20:27:43 +00:00
openvz_util.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00