]> git.proxmox.com Git - qemu-server.git/commit - PVE/QemuServer.pm
cpu weight: clamp to maximum for cgroup v2
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 7 Jul 2021 07:36:17 +0000 (09:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 7 Jul 2021 07:36:20 +0000 (09:36 +0200)
commit6c71a52acd081b94519dc960328098659ad84e88
tree8ba1ad62a619bebed0b4e6a06686033e7ca595c3
parent4a5cb613d37b684133d73f70a205e8df096513ce
cpu weight: clamp to maximum for cgroup v2

In v2 the range is [1, 10000], but the API allows the old limits from
2 to 262144, so clamp the upper for v2.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm