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

2024-08-07 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

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

2024-08-07 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