Re: [RFC PATCH 2/3] x86/mm: make sure LAM is up-to-date during context switching

From: Kirill A. Shutemov
Date: Sat Mar 09 2024 - 11:34:53 EST


On Sat, Mar 09, 2024 at 02:19:19AM +0000, Yosry Ahmed wrote:
> I don't see how skipping set_tlbstate_lam_mode() for kthreads fixes this
> problem. Do you mind elaborating?

Define what problem is.

Yes, in this scenario kthread gets more permissive LAM mode than it needs.
But nothing breaks.

--
Kiryl Shutsemau / Kirill A. Shutemov