Re: [PATCH v2 4/7] xen: move max_pfn in xen_memory_setup() out of function scope

2024-08-22 Thread Jürgen Groß
On 20.08.24 10:44, Jan Beulich wrote: On 20.08.2024 10:20, Juergen Gross wrote: Instead of having max_pfn as a local variable of xen_memory_setup(), make it a static variable in setup.c instead. This avoids having to pass it to subfunctions, which will be needed in more cases in future. Rename

Re: [PATCH v2 4/7] xen: move max_pfn in xen_memory_setup() out of function scope

2024-08-20 Thread Jan Beulich
On 20.08.2024 10:20, Juergen Gross wrote: > Instead of having max_pfn as a local variable of xen_memory_setup(), > make it a static variable in setup.c instead. This avoids having to > pass it to subfunctions, which will be needed in more cases in future. > > Rename it to ini_nr_pages, as the valu

[PATCH v2 4/7] xen: move max_pfn in xen_memory_setup() out of function scope

2024-08-20 Thread Juergen Gross
Instead of having max_pfn as a local variable of xen_memory_setup(), make it a static variable in setup.c instead. This avoids having to pass it to subfunctions, which will be needed in more cases in future. Rename it to ini_nr_pages, as the value denotes the currently usable number of memory page