diff options
author | Baoquan He <[email protected]> | 2018-06-25 11:16:55 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-07-03 10:50:12 +0200 |
commit | 9b912485e0e74a74e042e4f2dd87f262e46fcdf1 (patch) | |
tree | 958fdd1263e6ba9726a29967e9798e43b8ce4692 /net/lapb/lapb_subr.c | |
parent | 021c91791a5e7e85c567452f1be3e4c2c6cb6063 (diff) |
x86/boot/KASLR: Add two new functions for 1GB huge pages handling
Introduce two new functions: parse_gb_huge_pages() and process_gb_huge_pages(),
which handle a conflict between KASLR and huge pages of 1GB.
These two functions will be used in the next patch:
- parse_gb_huge_pages() is used to parse kernel command-line to get
how many 1GB huge pages have been specified. A static global
variable 'max_gb_huge_pages' is added to store the number.
- process_gb_huge_pages() is used to skip as many 1GB huge pages
as possible from the passed in memory region according to the
specified number.
Signed-off-by: Baoquan He <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions