]> git.ipfire.org Git - thirdparty/libvirt.git/commit
LXC implement memory control APIs
authorRyota Ozaki <ozaki.ryota@gmail.com>
Wed, 7 Oct 2009 13:26:23 +0000 (15:26 +0200)
committerDaniel Veillard <veillard@redhat.com>
Wed, 7 Oct 2009 13:26:23 +0000 (15:26 +0200)
commit3a05dc09ec57be5a6f0ea1755ccfb3685efea0fa
tree4a89421ce2f391461e02bb6a88528ed7a94e07b9
parent709c37e9321484939caa1dc94555cb72865f32f0
LXC implement memory control APIs

The patch implements the missing memory control APIs for lxc, i.e.,
domainGetMaxMemory, domainSetMaxMemory, domainSetMemory, and improves
domainGetInfo to return proper amount of used memory via cgroup.

* src/libvirt_private.syms: Export virCgroupGetMemoryUsage
  and add missing virCgroupSetMemory
* src/lxc/lxc_driver.c: Implement missing memory functions
* src/util/cgroup.c, src/util/cgroup.h: Add the function
  to get used memory
src/libvirt_private.syms
src/lxc/lxc_driver.c
src/util/cgroup.c
src/util/cgroup.h