On 06.02.2024 11:08, Petr Beneš wrote: > From: Petr Beneš <w1be...@gmail.com> > > This commit introduces the ability to configure the maximum number of altp2m > and nestedp2m tables through boot-time parameters. Previously, the limits > were > hardcoded to a maximum of 10 for both. This change allows for greater > flexibility in environments that require more or fewer tables, enhancing Xen's > adaptability to different workloads and scenarios. > > Adjustments include: > - Adding boot parameters `max_altp2m` and `max_nestedp2m` to allow setting > these limits at boot time. > - Modifying various parts of the code to use these configurable limits instead > of the previous hardcoded values. > - Ensuring that if the configured values exceed the maximum supported EPTP > entries, they are adjusted down with a warning logged. > - Adjusting the initial allocation of pages in `hap_enable` from 256 to 2048 > pages when `old_pages == 0`.
This change ought to come separately, with its own justification. Assuming it can be justified at all, considering it also affects the non-nested, non-alternative case. Jan