Re: [RFC PATCH 2/5] entry: Add calls for save/restore auxiliary pt_regs

From: Borislav Petkov
Date: Tue Aug 09 2022 - 17:39:05 EST


On Tue, Aug 09, 2022 at 11:14:19PM +0200, Thomas Gleixner wrote:
> Ira is right. If we want it for everything, then the generic code is the
> right place.

But what is "everything"? Currently, and AFAIU, it is for the PKS use
case on x86 only.

I'm not saying it should not be done this way eventually - all I'm
saying is we should not design "preemptively" before it is really needed
for other arches.

Unless putting it in generic code makes it all simpler and cleaner to
do, that is.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette