]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86,fs/resctrl: Refactor domain create/remove using struct rdt_domain_hdr
authorTony Luck <tony.luck@intel.com>
Wed, 17 Dec 2025 17:20:52 +0000 (09:20 -0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Sun, 4 Jan 2026 12:48:11 +0000 (13:48 +0100)
commit97fec06d35b2c1ce6d80cf3b01bfddd82c720a2d
tree8ffac6b3f5a0801edba87c75ed4c78a940bdc688
parentc1b630573c8ca51a89bd480f7eeaf8754c7609f2
x86,fs/resctrl: Refactor domain create/remove using struct rdt_domain_hdr

Up until now, all monitoring events were associated with the L3 resource and it
made sense to use the L3 specific "struct rdt_mon_domain *" argument to functions
operating on domains.

Telemetry events will be tied to a new resource with its instances represented
by a new domain structure that, just like struct rdt_mon_domain, starts with
the generic struct rdt_domain_hdr.

Prepare to support domains belonging to different resources by changing the
calling convention of functions operating on domains.  Pass the generic header
and use that to find the domain specific structure where needed.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/20251217172121.12030-1-tony.luck@intel.com
arch/x86/kernel/cpu/resctrl/core.c
fs/resctrl/ctrlmondata.c
fs/resctrl/internal.h
fs/resctrl/rdtgroup.c
include/linux/resctrl.h