Re: [PATCH v2 3/3] x86/resctrl: Add "*" shorthand to set minimum io_alloc CBM for all domains

Reinette Chatre
2025-12-18T23:00:26Z

Hi Tony,

On 12/18/25 1:49 PM, Luck, Tony wrote:
>> + if (id && *id == '*') {
>
> That will accept arbitrary chars after the "*".
>
> if (id && !strcmp(id, "*"))
>
>> What do you think?
>
> Why is io_alloc special? The same simple change could apply to parse_line() to allow
> setting all domains in a resource to be set to the same value:
>
> # echo "L3:*=fff" > schemata
>
> # echo "MB:*=50" > schemata

If I remember correctly the idea was to limit this feature to io_alloc to avoid needing
to deal with L2 asymmetric domains [1].

Reinette

[1] https://lore.kernel.org/lkml/SJ1PR11MB60833A27A1B8057CDDFB1B2BFCCFA@SJ1PR11MB6083.namprd11.prod.outlook.com/