On Mon, Jan 09, 2023 at 03:43:11PM -0800, Reinette Chatre wrote: > We could make a rule that no more resctrl related features are added to > cpuinfo but I am hesitant to remove the ones that are already there. Yes, that makes sense. And note that we try for /proc/cpuinfo to contain flags where the kernel has received (substantial) enablement work to support a feature. Shadow stack would be one good example. If resctrl needs to use a feature and it cannot use that feature without kernel enablement, then yes, by all means, it should use /proc/cpuinfo and not the corresponding CPUID bit. Because the presence of the flag in /proc/cpuinfo says "yes, you can use the feature and the kernel you're running on has the required support." Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette