[libvirt] [PATCH 0/2] Share cgroup code that is duplicated between QEMU and LXC

Fabiano Fidêncio posted 2 patches 5 years, 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20180603181000.5621-1-fabiano@fidencio.org
Test syntax-check failed
There is a newer version of this series
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(-)
[libvirt] [PATCH 0/2] Share cgroup code that is duplicated between QEMU and LXC
Posted by Fabiano Fidêncio 5 years, 10 months ago
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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list