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(-)

-- 
2.29.2

Reply via email to