Re: [PATCH v3 04/38] x86/resctrl: Use schema type to determine how to parse schema values

From: Reinette Chatre
Date: Fri Jun 28 2024 - 12:44:06 EST


Hi James,

On 6/14/24 7:59 AM, James Morse wrote:
Resctrl's architecture code gets to specify a function pointer that is
used when parsing schema entries. This is expected to be one of two
helpers from the filesystem code.

Setting this function pointer allows the architecture code to change
the ABI resctrl presents to user-space, and forces resctrl to expose
these helpers.

Instead, use the schema format enum to choose which schema parser to
use. This allows the helpers to be made static and the structs used
for passing arguments moved out of shared headers.

Signed-off-by: James Morse <james.morse@xxxxxxx>
---

Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>

Reinette