]> xenbits.xensource.com Git - libvirt.git/commit
vircgroupv2: fix virCgroupV2ValidateMachineGroup
authorPavel Hrdina <phrdina@redhat.com>
Tue, 11 Dec 2018 09:35:20 +0000 (17:35 +0800)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 14 Dec 2018 03:30:20 +0000 (11:30 +0800)
commit634bd528cb194439f0bea0815f579d0b0c1b1a92
treeb985864d9aef145d354c75d01353afdb402eaf8d
parentb532546823fde032fe827d41735a0d591c3bc0b8
vircgroupv2: fix virCgroupV2ValidateMachineGroup

When libvirt is reconnecting to running domain that uses cgroup v2
the QEMU process reports cgroup for the emulator directory because the
main thread is in that cgroup.  We need to remove the "/emulator" part
in order to match with the root cgroup directory name for that domain.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/util/vircgroupv2.c