virLXCCgroupSetupBlkioTune() and qemuSetupBlkioCgroup() and
virLXCCgroupSetupCpuTune() and qemuSetupCpuCgroup() are the most similar
functions between QEMU and LXC code.
Let's move their common code to virCgroup.
Fabiano FidĂȘncio (2):
vircgroup: Add virCgroupSetupBlkiotune()
vircgroup: Add virCgroupSetupMemtune()
src/libvirt_private.syms | 2 ++
src/lxc/lxc_cgroup.c | 69 ++------------------------------------------
src/qemu/qemu_cgroup.c | 61 ++-------------------------------------
src/util/vircgroup.c | 74 ++++++++++++++++++++++++++++++++++++++++++++++++
src/util/vircgroup.h | 4 +++
5 files changed, 85 insertions(+), 125 deletions(-)
--
2.14.3