[libvirt] [PATCH 1/2] vircgroup: introduce virCgroupKillRecursiveCB

Michal Privoznik mprivozn at redhat.com
Thu Dec 13 15:28:29 UTC 2018


On 12/12/18 11:17 AM, Pavel Hrdina wrote:
> The rewrite to support cgroup v2 missed this function.  In cgroup v2
> we have different files to track tasks.
> 
> We would fail to remove cgroup on non-systemd OSes if there is any
> extra process assigned to guest cgroup because we would not kill any
> process form the guest cgroup.
> 
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
>  src/util/vircgroup.c        | 69 ++++++++++++++++++++-----------------
>  src/util/vircgroupbackend.h |  7 ++++
>  src/util/vircgrouppriv.h    |  8 +++++
>  src/util/vircgroupv1.c      | 16 +++++++++
>  src/util/vircgroupv2.c      | 16 +++++++++
>  5 files changed, 84 insertions(+), 32 deletions(-)

ACK

Michal




More information about the libvir-list mailing list