Re: [PATCH v3 15/19] x86/resctrl: Add helpers for system wide mon/alloc capable

James Morse
2023-04-27T14:20:25Z

On 01/04/2023 00:29, Reinette Chatre wrote:
> Hi James,
>
> On 3/20/2023 10:26 AM, James Morse wrote:
>> resctrl reads rdt_alloc_capable or rdt_mon_capable to determine
>> whether any of the resources support the corresponding features.
>> resctrl also uses the static-keys that affect the architecture's
>> context-switch code to determine the same thing.
>
> hmmm ... they are not the same though since the static-keys
> in addition means that resctrl is mounted.

and all the paths where this matters were updated in patch 12 to have an explicit
resctrl_mounted check.

Thanks,

James