Re: [PATCH v6 05/12] arm/sve: save/restore SVE context switch

2023-05-22 Thread Luca Fancellu
> On 22 May 2023, at 13:41, Jan Beulich wrote: > > On 22.05.2023 12:20, Luca Fancellu wrote: >> >> >>> On 18 May 2023, at 19:30, Julien Grall wrote: >>> >>> Hi Luca, >>> >>> One more remark. >>> >>> On 24/04/2023 07:02, Luca Fancellu wrote: #else /* !CONFIG_ARM64_SVE */ @@ -46,6

Re: [PATCH v6 05/12] arm/sve: save/restore SVE context switch

2023-05-22 Thread Jan Beulich
On 22.05.2023 12:20, Luca Fancellu wrote: > > >> On 18 May 2023, at 19:30, Julien Grall wrote: >> >> Hi Luca, >> >> One more remark. >> >> On 24/04/2023 07:02, Luca Fancellu wrote: >>> #else /* !CONFIG_ARM64_SVE */ >>> @@ -46,6 +50,15 @@ static inline unsigned int get_sys_vl_len(void) >>>

Re: [PATCH v6 05/12] arm/sve: save/restore SVE context switch

2023-05-22 Thread Luca Fancellu
> On 18 May 2023, at 19:30, Julien Grall wrote: > > Hi Luca, > > One more remark. > > On 24/04/2023 07:02, Luca Fancellu wrote: >> #else /* !CONFIG_ARM64_SVE */ >> @@ -46,6 +50,15 @@ static inline unsigned int get_sys_vl_len(void) >> return 0; >> } >> +static inline int sve_context_i

Re: [PATCH v6 05/12] arm/sve: save/restore SVE context switch

2023-05-19 Thread Julien Grall
Hi, On 19/05/2023 18:35, Luca Fancellu wrote: On 18 May 2023, at 19:27, Julien Grall wrote: Hi Luca, On 24/04/2023 07:02, Luca Fancellu wrote: Save/restore context switch for SVE, allocate memory to contain the Z0-31 registers whose length is maximum 2048 bits each and FFR who can be maxi

Re: [PATCH v6 05/12] arm/sve: save/restore SVE context switch

2023-05-19 Thread Luca Fancellu
> On 18 May 2023, at 19:27, Julien Grall wrote: > > Hi Luca, > > On 24/04/2023 07:02, Luca Fancellu wrote: >> Save/restore context switch for SVE, allocate memory to contain >> the Z0-31 registers whose length is maximum 2048 bits each and >> FFR who can be maximum 256 bits, the allocated memo

Re: [PATCH v6 05/12] arm/sve: save/restore SVE context switch

2023-05-18 Thread Julien Grall
Hi Luca, One more remark. On 24/04/2023 07:02, Luca Fancellu wrote: #else /* !CONFIG_ARM64_SVE */ @@ -46,6 +50,15 @@ static inline unsigned int get_sys_vl_len(void) return 0; } +static inline int sve_context_init(struct vcpu *v) +{ +return 0; The call is protected by is_

Re: [PATCH v6 05/12] arm/sve: save/restore SVE context switch

2023-05-18 Thread Julien Grall
Hi Luca, On 24/04/2023 07:02, Luca Fancellu wrote: Save/restore context switch for SVE, allocate memory to contain the Z0-31 registers whose length is maximum 2048 bits each and FFR who can be maximum 256 bits, the allocated memory depends on how many bits is the vector length for the domain and

[PATCH v6 05/12] arm/sve: save/restore SVE context switch

2023-04-23 Thread Luca Fancellu
Save/restore context switch for SVE, allocate memory to contain the Z0-31 registers whose length is maximum 2048 bits each and FFR who can be maximum 256 bits, the allocated memory depends on how many bits is the vector length for the domain and how many bits are supported by the platform. Save P0