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

Moger, Babu
2025-12-18T21:56:31Z

On 12/18/2025 3:49 PM, Luck, Tony wrote:
>> + if (id && *id == '*') {
>
> That will accept arbitrary chars after the "*".
>
> if (id && !strcmp(id, "*"))

oh.ok. Thanks

>
>> 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:
>

Yes. I am fine with that approach. Treat "*" equivalent for all the
resources not just io_alloc.

> # echo "L3:*=fff" > schemata
>
> # echo "MB:*=50" > schemata
>
> -Tony
>
>