[PATCH 00/47] extract cgroup v1 code to separate backend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We will need to introduce cgroup v2 support which needs to co-exit       
with the current cgroup v1 implementation.  In order to do that          
this patch series introduces virCgroupBackend structure and moves        
all cgroup v1 related code to separate file.                             
                                                                         
There is no functional change.

This series depends on [1] and you can pull it from [2].

[1] <https://www.redhat.com/archives/libvir-list/2018-September/msg00760.html>
[2] <https://github.com/Antique/libvirt/tree/cgroupv1>

Pavel Hrdina (47):
  util: introduce vircgroupbackend files
  vircgroup: introduce cgroup v1 backend files
  vircgroup: extract virCgroupV1Available
  vircgroup: detect available backend for cgroup
  vircgroup: extract virCgroupV1ValidateMachineGroup
  vircgroup: extract virCgroupV1CopyMounts
  vircgroup: extract v1 detect functions
  vircgroup: extract virCgroupV1CopyPlacement
  vircgroup: extract virCgroupV1ValidatePlacement
  vircgroup: extract virCgroupV1GetPlacement
  vircgroup: extract virCgroupV1DetectControllers
  vircgroup: extract virCgroupV1HasController
  vircgroup: extract virCgroupV1GetAnyController
  vircgroup: extract virCgroupV1PathOfController
  vircgroup: extract virCgroupV1MakeGroup
  vircgroup: extract virCgroupV1Remove
  vircgroup: extract virCgroupV1AddTask
  vircgroup: extract virCgroupV1HasEmptyTasks
  vircgroup: extract virCgroupV1BindMount
  vircgroup: extract virCgroupV1SetOwner
  vircgroup: extract virCgroupV1(Set|Get)BlkioWeight
  vircgroup: extract virCgroupV1GetBlkioIoServiced
  vircgroup: extract virCgroupV1GetBlkioIoDeviceServiced
  vircgroup: extract virCgroupV1(Set|Get)BlkioDeviceWeight
  vircgroup: extract virCgroupV1(Set|Get)BlkioDeviceReadIops
  vircgroup: extract virCgroupV1(Set|Get)BlkioDeviceWriteIops
  vircgroup: extract virCgroupV1(Set|Get)BlkioDeviceReadBps
  vircgroup: extract virCgroupV1(Set|Get)BlkioDeviceWriteBps
  vircgroup: extract virCgroupV1SetMemory
  vircgroup: extract virCgroupV1GetMemoryStat
  vircgroup: extract virCgroupV1GetMemoryUsage
  vircgroup: extract virCgroupV1(Set|Get)Memory*Limit
  vircgroup: extract virCgroupV1GetMemSwapUsage
  vircgroup: extract virCgroupV1(Allow|Deny)Device
  vircgroup: extract virCgroupV1(Allow|Deny)AllDevices
  vircgroup: extract virCgroupV1(Set|Get)CpuShares
  vircgroup: extract virCgroupV1(Set|Get)CpuCfsPeriod
  vircgroup: extract virCgroupV1(Set|Get)CpuCfsQuota
  vircgroup: extract virCgroupV1SupportsCpuBW
  vircgroup: extract virCgroupV1GetCpuacct*Usage
  vircgroup: extract virCgroupV1GetCpuacctStat
  vircgroup: extract virCgroupV1(Set|Get)FreezerState
  vircgroup: extract virCgroupV1(Set|Get)CpusetMems
  vircgroup: extract virCgroupV1(Set|Get)CpusetMemoryMigrate
  vircgroup: extract virCgroupV1(Set|Get)CpusetCpus
  vircgroup: rename virCgroupController into virCgroupV1Controller
  vircgroup: rename controllers to legacy

 src/Makefile.am             |    2 +
 src/libvirt_private.syms    |    6 +
 src/util/Makefile.inc.am    |    4 +
 src/util/vircgroup.c        | 1692 +++-------------------------
 src/util/vircgroupbackend.c |   66 ++
 src/util/vircgroupbackend.h |  437 ++++++++
 src/util/vircgrouppriv.h    |   59 +-
 src/util/vircgroupv1.c      | 2096 +++++++++++++++++++++++++++++++++++
 src/util/vircgroupv1.h      |   27 +
 tests/vircgrouptest.c       |   52 +-
 10 files changed, 2840 insertions(+), 1601 deletions(-)
 create mode 100644 src/util/vircgroupbackend.c
 create mode 100644 src/util/vircgroupbackend.h
 create mode 100644 src/util/vircgroupv1.c
 create mode 100644 src/util/vircgroupv1.h

-- 
2.17.1

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



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux