Re: [PATCH v2 1/1] x86/elf: Add a new .note section containing Xfeatures information to x86 core files

From: Balasubrmanian, Vignesh
Date: Sun May 26 2024 - 00:55:16 EST



On 5/23/2024 8:15 PM, Borislav Petkov wrote:
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.


On Thu, May 23, 2024 at 11:57:00AM +0530, Balasubrmanian, Vignesh wrote:
Currently, this enum is the same as XSAVE, but when we add other features, this
enum might have a different value of the XSAVE features and can be modified
without disturbing the existing kernel code.
We will do that when we cross that bridge, right?

I am struggling to interpret.
If we can add a new enum only when we extend, then as Thomas suggested can we use other kernel variables as in the first version of the patch until we extend for other/new features?

thanks,
vigneshbalu.


--
Regards/Gruss,
Boris.

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