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

Re: [PATCH v5 06/22] tools: Add XEN_DOMCTL_CONFIG_VIOMMU_* and viommu config param



Hi Milan,

> diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c
> index 0ccece3e8a18..4e5bc84ca3b5 100644
> --- a/tools/xl/xl_parse.c
> +++ b/tools/xl/xl_parse.c
> @@ -3080,6 +3080,15 @@ void parse_config_data(const char *config_source,
>          }
>      }
>  
> +    if (!xlu_cfg_get_string (config, "viommu", &buf, 1)) {
> +        e = libxl_viommu_type_from_string(buf, 
> &b_info->arch_arm.viommu_type);
> +        if (e) {
> +            fprintf(stderr,
> +                    "Unknown vIOMMU type \"%s\" specified\n", buf);
> +            exit(-ERROR_FAIL);

Please use `exit(EXIT_FAILURE)` instead. ERROR_FAIL is a libxl error
code, not really usable as an program exit value.

With that:

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

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®.