diff options
author | Juergen Gross <jgross@suse.com> | 2019-02-14 13:42:39 +0300 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2019-02-18 08:50:34 +0300 |
commit | 357b4da50a62e2fd70eacee21cdbd22d4c7a7b60 (patch) | |
tree | 67ddf0b7850cf8fa134d97cf00ba7647bf627591 /arch/x86/xen | |
parent | 068e79f4a9d613f4327cb4062a1e49c0eaca7149 (diff) | |
download | linux-357b4da50a62e2fd70eacee21cdbd22d4c7a7b60.tar.xz |
x86: respect memory size limiting via mem= parameter
When limiting memory size via kernel parameter "mem=" this should be
respected even in case of memory made accessible via a PCI card.
Today this kind of memory won't be made usable in initial memory
setup as the memory won't be visible in E820 map, but it might be
added when adding PCI devices due to corresponding ACPI table entries.
Not respecting "mem=" can be corrected by adding a global max_mem_size
variable set by parse_memopt() which will result in rejecting adding
memory areas resulting in a memory size above the allowed limit.
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'arch/x86/xen')
0 files changed, 0 insertions, 0 deletions