Re: [PATCH v3 21/38] x86/resctrl: Move mbm_cfg_mask to struct rdt_resource

From: Reinette Chatre
Date: Fri Jun 28 2024 - 12:53:18 EST


Hi James,

On 6/14/24 8:00 AM, James Morse wrote:
The mbm_cfg_mask field lists the bits that user-space can set when
configuring an event. This value is output via the last_cmd_status
file.

Once the filesystem parts of resctrl are moved to live in /fs/, the
struct rdt_hw_resource is inaccessible to the filesystem code. Because
this value is output to user-space, it has to be accessible to the
filesystem code.

Move it to struct rdt_resource.

Change looks good. Please do note that there is work in progress to
consolidate the monitoring related data within a new struct that will
impact this change:
https://lore.kernel.org/lkml/8f73c9ec4c9999c262d9297d46a03209a8affe3f.1716552602.git.babu.moger@xxxxxxx/

Reinette