Re: [GIT PULL] KVM changes for Linux 6.14

Oleg Nesterov
2025-01-27T14:10:22Z

On 01/26, Linus Torvalds wrote:
>
> On Sun, 26 Jan 2025 at 10:54, Oleg Nesterov <oleg@redhat.com> wrote:
> >
> > I don't think we even need to detect the /proc/self/ or /proc/self-thread/
> > case, next_tid() can just check same_thread_group,
>
> That was my thinking yes.
>
> If we exclude them from /proc/*/task entirely, I'd worry that it would
> hide it from some management tool and be used for nefarious purposes

Agreed,

> (even if they then show up elsewhere that the tool wouldn't look at).

Even if we move them from /proc/*/task to /proc ?

Perhaps, I honestly do not know what will/can confuse userspace more.

> But as mentioned, maybe this is all more of a hack than what kvm now does.

I don't know. But I will be happy to make a patch if we have a consensus.

Oleg.