diff options
author | Juergen Gross <jgross@suse.com> | 2024-08-06 10:24:41 +0200 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2024-09-10 10:07:10 +0200 |
commit | 43dc2a0f479b9cd30f6674986d7a40517e999d31 (patch) | |
tree | b1906e05e19d1ba79021bd742b456616936ab164 /certs | |
parent | xen: move checks for e820 conflicts further up (diff) | |
download | linux-43dc2a0f479b9cd30f6674986d7a40517e999d31.tar.xz linux-43dc2a0f479b9cd30f6674986d7a40517e999d31.zip |
xen: move max_pfn in xen_memory_setup() out of function scope
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 pages as passed from the hypervisor at boot time.
Signed-off-by: Juergen Gross <jgross@suse.com>
Tested-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions