[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v16 5/6] tools/xl/libxl: wire up SCMI SMC multi-agent configuration



Hi Oleksii,

> Series-changes 12:
> - reject agent_id in xl.cfg when the ARM_SCI type is not
>   scmi_smc_multiagent, instead of parsing it and discarding it
> - perform the check after the option loop, as type and agent_id may be
>   given in either order

The patch changelog could be removed from the commit message (and moved
after the --- on repost).

> diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c
> index 0ccece3e8a18..97a35ef16987 100644
> --- a/tools/xl/xl_parse.c
> +++ b/tools/xl/xl_parse.c
> @@ -1308,9 +1309,35 @@ static int parse_arm_sci_config(XLU_Config *cfg, 
> libxl_arm_sci *arm_sci,
>              }
>          }
>  
> +        if (MATCH_OPTION("agent_id", ptr, oparg)) {
> +            unsigned long val = parse_ulong(oparg);
> +
> +            if ( val >= UINT8_MAX ) {

Nit, coding style: We don't have space within the parenthesis in
conditions.


Patch looks fine to me as is:

Reviewed-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>

Something to not forget on commit (or even respin) is to regen the go
binding, due to the IDL change. (`make -C tools/golang/xenlight
types.gen.go helpers.gen.go` if you don't have go installed should do
the trick)

Thanks,


--
Anthony Perard | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.