]> xenbits.xensource.com Git - libvirt.git/commit
conf: Replace access to def->mem.max_balloon with accessor functions
authorPeter Krempa <pkrempa@redhat.com>
Tue, 17 Feb 2015 17:01:09 +0000 (18:01 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 16 Mar 2015 13:26:51 +0000 (14:26 +0100)
commit4f9907cd11796d984ed08fcfb9852b10c62a9fb1
treecd2173681bd255f2dbaa52a68ac0ef54a6bdaa12
parent51f9f03a4ca50b070c0fbfb29748d49f583e15e1
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.
30 files changed:
src/bhyve/bhyve_command.c
src/bhyve/bhyve_driver.c
src/conf/domain_conf.c
src/conf/domain_conf.h
src/hyperv/hyperv_driver.c
src/libvirt_private.syms
src/libxl/libxl_conf.c
src/libxl/libxl_driver.c
src/lxc/lxc_cgroup.c
src/lxc/lxc_driver.c
src/lxc/lxc_fuse.c
src/lxc/lxc_native.c
src/openvz/openvz_driver.c
src/parallels/parallels_driver.c
src/parallels/parallels_sdk.c
src/phyp/phyp_driver.c
src/qemu/qemu_command.c
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/qemu/qemu_process.c
src/test/test_driver.c
src/uml/uml_driver.c
src/vbox/vbox_common.c
src/vmware/vmware_driver.c
src/vmx/vmx.c
src/xen/xm_internal.c
src/xenapi/xenapi_driver.c
src/xenapi/xenapi_utils.c
src/xenconfig/xen_common.c
src/xenconfig/xen_sxpr.c