linux/fs/resctrl
Babu Moger af1242eeca fs/resctrl: Modify struct rdt_parse_data to pass mode and CLOSID
parse_cbm() requires resource group mode and CLOSID to validate the capacity
bitmask (CBM). It is passed via struct rdtgroup in struct rdt_parse_data.

The io_alloc feature also uses CBMs to indicate which portions of cache are
allocated for I/O traffic. The CBMs are provided by user space and need to be
validated the same as CBMs provided for general (CPU) cache allocation.
parse_cbm() cannot be used as-is since io_alloc does not have rdtgroup context.

Pass the resource group mode and CLOSID directly to parse_cbm() via struct
rdt_parse_data, instead of through the rdtgroup struct, to facilitate calling
parse_cbm() to verify the CBM of the io_alloc feature.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://patch.msgid.link/f8ec6ab5cf594d906a3fe75f56793d5fbd63f38f.1762995456.git.babu.moger@amd.com
2025-11-22 13:10:12 +01:00
..
ctrlmondata.c fs/resctrl: Modify struct rdt_parse_data to pass mode and CLOSID 2025-11-22 13:10:12 +01:00
internal.h fs/resctrl: Introduce interface to display io_alloc CBMs 2025-11-22 11:37:21 +01:00
Kconfig
Makefile
monitor.c fs/resctrl: Fix counter auto-assignment on mkdir with mbm_event enabled 2025-09-17 11:31:12 +02:00
monitor_trace.h
pseudo_lock.c resctrl: get rid of pointless debugfs_file_{get,put}() 2025-07-09 13:30:28 +02:00
rdtgroup.c fs/resctrl: Introduce interface to display io_alloc CBMs 2025-11-22 11:37:21 +01:00