On 19.03.2024 16:58, Jan Beulich wrote:
> On 15.03.2024 11:59, Carlo Nonato wrote:
>> @@ -326,6 +328,27 @@ unsigned int get_max_nr_llc_colors(void)
>> return max_nr_colors;
>> }
>>
>> +paddr_t __init xen_colored_map_size(void)
>> +{
>> + return ROUNDUP((_end - _start) * max_nr_colors, XEN_PADDR_ALIGN);
>> +}
>
> XEN_PADDR_ALIGN is an inherently Arm thing. Such better wouldn't appear
> in common code.
And actually in patch 10 you introduce get_max_nr_llc_colors). With
that, this calculation can more to Arm code.
Jan