]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
LXC: resolve issues in lxcDomainSetMaxMemory
authorChen Hanxiao <chenhanxiao@cn.fujitsu.com>
Thu, 31 Jul 2014 03:41:10 +0000 (11:41 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 13 Aug 2014 21:40:28 +0000 (17:40 -0400)
commitbd3b76e35502928a490465bbc1251546c01f00c3
tree697f2e7a1be0020f7ea85d7455f6c55f66f16db0
parentc018efa863a0be46628bc9437fc78dff6d8ee4a2
LXC: resolve issues in lxcDomainSetMaxMemory

This patch changes the setmaxmem function to support the '--live',
'--config', and '--current' flags by revectoring the code through
the setmem function using the VIR_DOMAIN_MEM_MAXIMUM flag. The
setmem code is refactored to handle both cases depending on the flag.

The changed maxmem code for the MEM_MAXIMUM path will not allow
modification to the memory values of an active guest unless the --config
switch is used.

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
src/lxc/lxc_driver.c