[Devel] [PATCH hci-8.2 v4 2/3] ve: give the pseudosuper relaxations of ve0 to its own tasks only
Mirian Shilakadze
mirian.shilakadze at virtuozzo.com
Tue Nov 24 13:02:08 MSK 2026
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.
More information about the Devel
mailing list