]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuSetupMemoryCgroup: Handle hard_limit properly
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 20 Aug 2013 09:04:18 +0000 (11:04 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 20 Aug 2013 13:03:17 +0000 (15:03 +0200)
commit94a24dd3a953f415596dd2800287c9010fa51c4c
tree2e586a5d2ffb166636dd15978cc847bb62389e44
parent8563b091fff4856a0cee7b568e52ff5b64d96ed3
qemuSetupMemoryCgroup: Handle hard_limit properly

Since 16bcb3 we have a regression. The hard_limit is set
unconditionally. By default the limit is zero. Hence, if user hasn't
configured any, we set the zero in cgroup subsystem making the kernel
kill the corresponding qemu process immediately. The proper fix is to
set hard_limit iff user has configured any.
src/qemu/qemu_cgroup.c