Re: [libvirt PATCH 0/3] cgroup cpu.shares cleanup

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

 



On 3/3/21 2:35 PM, Pavel Hrdina wrote:
After the conversion to using systemd DBus APIs the behavior of changed
for values outside of valid range. This series fixes the issue by
enforcing the range on libvirt side instead of the previous magic
conversion done by kernel.

Pavel Hrdina (3):
   vircgroup: enforce range limit for cpu.shares
   cgroup: use virCgroupSetCpuShares instead of virCgroupSetupCpuShares
   vircgroup: drop unused function virCgroupSetupCpuShares

  docs/formatdomain.rst      |  3 ++-
  docs/manpages/virsh.rst    |  5 +----
  src/conf/domain_validate.c | 10 ++++++++++
  src/libvirt_private.syms   |  1 -
  src/lxc/lxc_cgroup.c       |  4 +---
  src/lxc/lxc_driver.c       |  6 ++----
  src/qemu/qemu_cgroup.c     | 21 +--------------------
  src/qemu/qemu_driver.c     |  7 +++----
  src/util/vircgroup.c       | 20 --------------------
  src/util/vircgroup.h       |  4 ++--
  src/util/vircgroupv1.c     | 10 ++++++++++
  src/util/vircgroupv2.c     | 10 ++++++++++
  12 files changed, 42 insertions(+), 59 deletions(-)


Reviewed-by: Michal Privoznik <mprivozn@xxxxxxxxxx>

Michal




[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