Re: [PATCH v4 07/12] xen: enable Dom0 to use SVE feature

2023-03-29 Thread Luca Fancellu
> On 29 Mar 2023, at 13:24, Jan Beulich wrote: > > On 29.03.2023 14:06, Luca Fancellu wrote: @@ -61,7 +62,12 @@ custom_param("dom0_mem", parse_dom0_mem); int __init parse_arch_dom0_param(const char *str_begin, const char *str_end) { -return -1; +int

Re: [PATCH v4 07/12] xen: enable Dom0 to use SVE feature

2023-03-29 Thread Jan Beulich
On 29.03.2023 14:06, Luca Fancellu wrote: >>> @@ -61,7 +62,12 @@ custom_param("dom0_mem", parse_dom0_mem); >>> >>> int __init parse_arch_dom0_param(const char *str_begin, const char *str_end) >>> { >>> -return -1; >>> +int rc = 0; >>> + >>> +if ( sve_parse_dom0_param(str_begin, str_end)

Re: [PATCH v4 07/12] xen: enable Dom0 to use SVE feature

2023-03-29 Thread Luca Fancellu
> >> @@ -61,7 +62,12 @@ custom_param("dom0_mem", parse_dom0_mem); >> >> int __init parse_arch_dom0_param(const char *str_begin, const char *str_end) >> { >> -return -1; >> +int rc = 0; >> + >> +if ( sve_parse_dom0_param(str_begin, str_end) < 0 ) >> +rc = -EINVAL; > > ... can'

Re: [PATCH v4 07/12] xen: enable Dom0 to use SVE feature

2023-03-29 Thread Jan Beulich
On 29.03.2023 13:48, Luca Fancellu wrote: >> On 28 Mar 2023, at 11:08, Jan Beulich wrote: >> On 27.03.2023 12:59, Luca Fancellu wrote: >>> @@ -838,6 +838,18 @@ Controls for how dom0 is constructed on x86 systems. >>> >>> If using this option is necessary to fix an issue, please report a bug. >

Re: [PATCH v4 07/12] xen: enable Dom0 to use SVE feature

2023-03-29 Thread Luca Fancellu
> On 28 Mar 2023, at 11:08, Jan Beulich wrote: > > On 27.03.2023 12:59, Luca Fancellu wrote: >> @@ -838,6 +838,18 @@ Controls for how dom0 is constructed on x86 systems. >> >> If using this option is necessary to fix an issue, please report a bug. >> >> +Enables features on dom0 on Arm s

Re: [PATCH v4 07/12] xen: enable Dom0 to use SVE feature

2023-03-28 Thread Jan Beulich
On 27.03.2023 12:59, Luca Fancellu wrote: > @@ -838,6 +838,18 @@ Controls for how dom0 is constructed on x86 systems. > > If using this option is necessary to fix an issue, please report a bug. > > +Enables features on dom0 on Arm systems. > + > +* The `sve` integer parameter enables Arm

[PATCH v4 07/12] xen: enable Dom0 to use SVE feature

2023-03-27 Thread Luca Fancellu
Add a command line parameter to allow Dom0 the use of SVE resources, the command line parameter sve=, sub argument of dom0=, controls the feature on this domain and sets the maximum SVE vector length for Dom0. Add a new function, parse_integer(), to parse an integer command line argument. Signed-