On 16/05/2023 8:42 am, Jan Beulich wrote:
> While 670d6b908ff2 ('x86 shadow: Move the shadow linear mapping for
> n-on-3-on-4 shadows so') bumped the amount by one too little for the
> 32-on-64 case (which luckily was dead code, and hence a bump wasn't
> necessary in the first place), 0b841314dace ('x86/shadow:
> sh_{make,destroy}_monitor_table() are "even more" HVM-only'), dropping
> the dead code, then didn't adjust the amount back. Yet even the original
> amount was too high in certain cases. Switch to pre-allocating just as
> much as is going to be needed.
>
> Signed-off-by: Jan Beulich <[email protected]>Acked-by: Andrew Cooper <[email protected]>
