Re: [PATCH v2 6/9] x86/shadow: re-work 4-level SHADOW_FOREACH_L2E()

2023-01-17 Thread Jan Beulich
On 17.01.2023 19:48, Andrew Cooper wrote: > On 11/01/2023 1:54 pm, Jan Beulich wrote: >> First of all move the almost loop-invariant condition out of the loop; >> transform it into an altered loop boundary. Since the new local variable >> wants to be "unsigned int" and named without violating name

Re: [PATCH v2 6/9] x86/shadow: re-work 4-level SHADOW_FOREACH_L2E()

2023-01-17 Thread Andrew Cooper
On 11/01/2023 1:54 pm, Jan Beulich wrote: > First of all move the almost loop-invariant condition out of the loop; > transform it into an altered loop boundary. Since the new local variable > wants to be "unsigned int" and named without violating name space rules, > convert the loop induction varia

[PATCH v2 6/9] x86/shadow: re-work 4-level SHADOW_FOREACH_L2E()

2023-01-11 Thread Jan Beulich
First of all move the almost loop-invariant condition out of the loop; transform it into an altered loop boundary. Since the new local variable wants to be "unsigned int" and named without violating name space rules, convert the loop induction variable accordingly. Signed-off-by: Jan Beulich ---