add PVE::QemuServer::Cgroup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-11-24 12:00:33 +01:00
parent ff0721517d
commit 114d2e765a
2 changed files with 15 additions and 0 deletions

14
PVE/QemuServer/CGroup.pm Normal file
View File

@ -0,0 +1,14 @@
package PVE::QemuServer::CGroup;
use strict;
use warnings;
use PVE::CGroup;
use base('PVE::CGroup');
sub get_subdir {
my ($self, $controller, $limiting) = @_;
my $vmid = $self->{vmid};
return "qemu.slice/$vmid.scope/";
}
1;

View File

@ -9,6 +9,7 @@ SOURCES=PCI.pm \
Monitor.pm \
Machine.pm \
CPUConfig.pm \
CGroup.pm \
Drive.pm \
.PHONY: install