libvirt/src/xenapi
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
..
xenapi_driver_private.h maint: Rename xmlconf to xmlopt and virDomainXMLConfig to virDomainXMLOption 2013-04-04 22:18:56 +02:00
xenapi_driver.c conf: Replace access to def->mem.max_balloon with accessor functions 2015-03-16 14:26:51 +01:00
xenapi_driver.h Change file names in comments to match the files they are in 2014-03-10 14:26:04 +01:00
xenapi_utils.c conf: Replace access to def->mem.max_balloon with accessor functions 2015-03-16 14:26:51 +01:00
xenapi_utils.h xenapi_utils: Adapt to enum cleanups 2014-06-03 09:18:58 +02:00