libvirt/src/bhyve
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
..
bhyve_capabilities.c bhyve: Probe grub-bhyve for --cons-dev capability 2014-11-12 09:55:22 +01:00
bhyve_capabilities.h bhyve: Probe grub-bhyve for --cons-dev capability 2014-11-12 09:55:22 +01:00
bhyve_command.c conf: Replace access to def->mem.max_balloon with accessor functions 2015-03-16 14:26:51 +01:00
bhyve_command.h bhyve: Support /domain/bootloader configuration for non-FreeBSD guests. 2014-11-12 09:55:22 +01:00
bhyve_device.c drvbhyve: Clean-up some used ATTRIBUTE_UNUSEDs. 2014-11-13 14:05:10 +01:00
bhyve_device.h bhyve: implement PCI address allocation 2014-06-13 19:25:27 +04:00
bhyve_domain.c Implement empty post parse callbacks for all drivers 2014-10-15 10:27:51 +02:00
bhyve_domain.h bhyve: implement PCI address allocation 2014-06-13 19:25:27 +04:00
bhyve_driver.c conf: Replace access to def->mem.max_balloon with accessor functions 2015-03-16 14:26:51 +01:00
bhyve_driver.h bhyve: Add console support for grub-bhyve bootloader 2014-11-12 09:55:22 +01:00
bhyve_monitor.c drvbhyve: Automatically tear down guest domains on shutdown 2014-12-04 11:03:13 +01:00
bhyve_monitor.h drvbhyve: Automatically tear down guest domains on shutdown 2014-12-04 11:03:13 +01:00
bhyve_process.c drvbhyve: Automatically tear down guest domains on shutdown 2014-12-04 11:03:13 +01:00
bhyve_process.h bhyve: reconnect to domains after libvirtd restart 2014-07-18 21:07:35 +04:00
bhyve_utils.h bhyve: Add console support for grub-bhyve bootloader 2014-11-12 09:55:22 +01:00