[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAMw=ZnSVAFMOs3dh5GpyQXJ9KVVmtd7zAT9B8RkZCCtF+M6J8g@mail.gmail.com>
Date: Sat, 9 Nov 2024 00:23:57 +0000
From: Luca Boccassi <bluca@...ian.org>
To: Tejun Heo <tj@...nel.org>
Cc: Paolo Bonzini <pbonzini@...hat.com>, linux-kernel@...r.kernel.org, kvm@...r.kernel.org,
michael.christie@...cle.com
Subject: Re: [PATCH] KVM: x86: switch hugepage recovery thread to vhost_task
On Fri, 8 Nov 2024 at 16:53, Tejun Heo <tj@...nel.org> wrote:
>
> On Fri, Nov 08, 2024 at 08:07:37AM -0500, Paolo Bonzini wrote:
> ...
> > Since the worker kthread is tied to a user process, it's better if
> > it behaves similarly to user tasks as much as possible, including
> > being able to send SIGSTOP and SIGCONT. In fact, vhost_task is all
> > that kvm_vm_create_worker_thread() wanted to be and more: not only it
> > inherits the userspace process's cgroups, it has other niceties like
> > being parented properly in the process tree. Use it instead of the
> > homegrown alternative.
>
> Didn't about vhost_task. That looks perfect. From cgroup POV:
>
> Acked-by: Tejun Heo <tj@...nel.org>
>
> Thanks.
Thanks, tested on my machine by applying it to kernel 6.11.5 and can
confirm the issues are gone, freezing the cgroup works and everything
else too.
Could you please CC stable so that it can get backported?
Tested-by: Luca Boccassi <bluca@...ian.org>
Powered by blists - more mailing lists