[PATCH v7 11/19] fs/resctrl: Add support for hidden resource group files
Reinette Chatre
reinette.chatre at intel.com
Tue Dec 1 20:57:19 PST 2026
Hi Babu,
On 11/11/26 2:44 PM, Babu Moger wrote:
> A resctrl file is visible to user space as soon as its resource group
> directory is activated. A file can only be hidden after it has been
> created, as is done for the info directory's BMEC event configuration
> files.
>
> In the global_enable_per_cpu kernel mode, kernel work running on CPUs where
> the mode is active uses the CLOSID and/or RMID as part of a single backing
drop "as part"?
> resource group. The files needed to display and modify the CPUs on which
> this kernel mode is active are only meaningful in that group. Visible in
> every resource group, the files would return errors when accessed in any
> group other than the one backing the active kernel mode. Creating the files
> when the kernel mode is activated, and removing them when it is
> deactivated, would add failure paths to kernel mode activation that showing
> and hiding existing files does not have.
>
> Allow a resource group file to be marked as hidden so that it is hidden
> when created, before its directory is activated, and is never visible to
> user space until resctrl restores its visibility. This provides the
> foundation in preparation for kernel mode support that shows the kmode_cpus
> and kmode_cpus_list files only in the resource group backing the active
> kernel mode.
>
> Suggested-by: Reinette Chatre <reinette.chatre at intel.com>
> Signed-off-by: Babu Moger <babu.moger at amd.com>
> ---
Reinette
More information about the linux-arm-kernel
mailing list