]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: populate xenstore memory entries at startup, handle dom0_mem
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Wed, 19 Jun 2013 02:46:26 +0000 (04:46 +0200)
committerJim Fehlig <jfehlig@suse.com>
Wed, 19 Jun 2013 22:23:40 +0000 (16:23 -0600)
commit7ed47d16dd865aa78240d14ecb82140fb808f165
treefdb3ab4110b6933bbb6fbac1007cdc06d3d8e89e
parent38ada092d1ad5f27a24e511173308d568b6b085f
libxl: populate xenstore memory entries at startup, handle dom0_mem

libxl uses some xenstore entries for hints in memory management
(especially when starting new domain). This includes dom0 memory limit
and Xen free memory margin, based on current system state. Entries are
created at first function usage, so force such call at daemon startup,
which most likely will be before any domain startup.
Also prevent automatic memory management if dom0_mem= option passed to
xen hypervisor - it is known to be incompatible with autoballoon.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
src/libxl/libxl_conf.h
src/libxl/libxl_driver.c