libvirt/src/libxl
Jim Fehlig ef71caeaa8 libxl: round memory values to next 1MiB increment
libxl requires the memory sizes to be rounded to 1MiB increments.
Attempting to start a domain that violates this requirement will
fail with the marginally helpful error

2018-02-22 01:55:32.921+0000: xc: panic: xc_dom_boot.c:141: xc_dom_boot_mem_init: can't allocate low memory for domain: Out of memory
2018-02-22 01:55:32.921+0000: libxl: libxl_dom.c:671:libxl__build_dom: xc_dom_boot_mem_init failed: No such file or directory

Round the maximum and current memory values to the next 1MiB
increment when generating the libxl_domain_config object.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
2018-02-23 15:01:27 -07:00
..
libvirtd_libxl.aug libxl: keepalive messages support 2016-02-09 21:14:12 -07:00
libxl_capabilities.c cpu: Drop unused parameter from cpuDecode 2017-10-16 09:21:52 +02:00
libxl_capabilities.h libxl: implement connectGetDomainCapabilities 2016-06-13 14:13:17 -06:00
libxl_conf.c libxl: round memory values to next 1MiB increment 2018-02-23 15:01:27 -07:00
libxl_conf.h port allocator: make port range constant object 2018-02-22 13:52:45 +01:00
libxl_domain.c port allocator: remove range check in release function 2018-02-22 13:52:45 +01:00
libxl_domain.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
libxl_driver.c port allocator: drop skip bind check flag 2018-02-22 13:52:45 +01:00
libxl_driver.h libxl: Use standard format for source file copyright notice 2013-09-03 23:53:48 -06:00
libxl_logger.c libxl: define a per-domain logger. 2017-01-11 09:32:47 +01:00
libxl_logger.h libxl: define a per-domain logger. 2017-01-11 09:32:47 +01:00
libxl_migration.c port allocator: remove range check in release function 2018-02-22 13:52:45 +01:00
libxl_migration.h Remove backslash alignment attempts 2017-11-03 13:24:12 +01:00
libxl.conf docs: Fix typo deamon -> daemon 2017-09-04 15:07:17 +02:00
Makefile.inc.am make: split libxl driver build rules into libxl/Makefile.inc.am 2018-02-23 13:14:26 +00:00
test_libvirtd_libxl.aug.in libxl: keepalive messages support 2016-02-09 21:14:12 -07:00