On 16.12.2024 14:56, Michal Orzel wrote: > On 13/12/2024 17:28, Carlo Nonato wrote: >> @@ -30,6 +31,17 @@ static inline void domain_dump_llc_colors(const struct >> domain *d) {} >> static inline void domain_llc_coloring_free(struct domain *d) {} >> #endif >> >> +/** >> + * Iterate over each Xen mfn in the colored space. >> + * @start_mfn: the first mfn that needs to be colored. >> + * @mfn: the current mfn. >> + * @i: loop index. >> + */ >> +#define for_each_xen_colored_mfn(start_mfn, mfn, i) \ >> + for ( i = 0, mfn = xen_colored_mfn(start_mfn); \ > Here and elsewhere you need to enclose 'i' in paranthesis. Otherwise ECLAIR > will report 20.7 violation.
And then also mfn, ftaod. Jan