From: Mirian Shilakadze <mirian.shilakadze@virtuozzo.com>
To: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>,
Konstantin Khorenko <khorenko@virtuozzo.com>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 v4 2/3] ve: give the pseudosuper relaxations of ve0 to its own tasks only
Date: Tue, 24 Nov 2026 14:02:08 +0400 [thread overview]
Message-ID: <d2337e50-a468-4ddf-ace6-ec1b86281c30@virtuozzo.com> (raw)
In-Reply-To: <5c4f9a90-231b-40d5-8370-26d69a040a62@virtuozzo.com>
On 11/23/26 1:19 PM, Pavel Tikhomirov wrote:
> I'd rather you simplify:
>
> bool ve_current_is_pseudosuper(struct ve_struct *ve)
> {
> struct mm_struct *mm = current->mm;
>
> if (task_ve(current) != ve)
> return false;
>
> /* ve0 trusts all of its own tasks */
> if (ve_is_super(get_exec_env()))
> return true;
>
> return ve->is_pseudosuper && mm &&
> (mm->vps_dumpable == VD_VE_SETUP_TASK ||
> mm->vps_dumpable == VD_VE_ENTER_TASK);
> }
>
> So it's absolutely obvious that we check super only against task's own ve.
Agreed, your version makes it obvious, I'd take it.
--
Best regards, Mirian Shilakadze
Linux C Virtualization Developer, Virtuozzo.
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next prev parent reply other threads:[~2026-11-24 10:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 16:34 [Devel] [PATCH hci-8.2 v4 0/3] ve: Container start on the 26.3 kernel with libvzctl before 10.0.144 Konstantin Khorenko
2026-11-20 16:34 ` [Devel] [PATCH hci-8.2 v4 1/3] ve: trust every host task of a pseudosuper VE until it execs Konstantin Khorenko
2026-11-20 16:34 ` [Devel] [PATCH hci-8.2 v4 2/3] ve: give the pseudosuper relaxations of ve0 to its own tasks only Konstantin Khorenko
2026-11-23 9:19 ` Pavel Tikhomirov
2026-11-24 10:02 ` Mirian Shilakadze [this message]
2026-11-20 16:34 ` [Devel] [PATCH hci-8.2 v4 3/3] selftests/ve: check a host task entering a pseudosuper VE reaches its init Konstantin Khorenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d2337e50-a468-4ddf-ace6-ec1b86281c30@virtuozzo.com \
--to=mirian.shilakadze@virtuozzo.com \
--cc=devel@openvz.org \
--cc=khorenko@virtuozzo.com \
--cc=ptikhomirov@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox