Re: [PATCH v1 3/3] x86/entry: Set FRED RSP0 on return to userspace instead of context switch
From: H. Peter Anvin
Date: Fri Aug 09 2024 - 18:44:51 EST
On August 9, 2024 10:37:08 AM PDT, Xin Li <xin@xxxxxxxxx> wrote:
>On 8/9/2024 3:45 AM, Nikolay Borisov wrote:
>>> +#define TIF_LOAD_USER_STATES 30 /* Load user level states */
>>
>> Wouldn't something along the l ines of TIF_LOAD_FRED_RSP be more descriptive, or it's expected that this flag can cover more state in the future?
>
>Sean mentioned TIF_LOAD_FRED_RSP, however we also have FRED SSP0, which
>needs to be handled similarly.
>
>And we also want to use it to cover future states.
It is very likely that there will be additional uses of this beyond FRED.