Re: [PATCH RFC V2 17/17] x86/entry: Preserve PKRS MSR across exceptions

Dave Hansen
2020-07-23T16:23:18Z

On 7/23/20 9:18 AM, Fenghua Yu wrote:
> The PKRS MSR has been preserved in thread_info during kernel entry. We
> don't need to preserve it in another place (i.e. idtentry_state).

I'm missing how the PKRS MSR gets preserved in thread_info. Could you
explain the mechanism by which this happens and point to the code
implementing it, please?