提交 c673f1a9 编写于 作者: W William Lee Irwin III 提交者: Linus Torvalds

i386: divorce CONFIG_X86_PAE from CONFIG_HIGHMEM64G

PAE is useful for more than supporting more than 4GB RAM.  It supports
expanded swapspace and NX executable protections.  Some users may want NX
or expanded swapspace support without the overhead or instability of
highmem.  For these reasons, the following patch divorces CONFIG_X86_PAE
from CONFIG_HIGHMEM64G.

Cc: Mark Lord <lkml@rtr.ca>
Signed-off-by: NWilliam Irwin <wli@holomorphy.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NAndi Kleen <ak@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 075bcd1f
...@@ -548,6 +548,7 @@ config HIGHMEM4G ...@@ -548,6 +548,7 @@ config HIGHMEM4G
config HIGHMEM64G config HIGHMEM64G
bool "64GB" bool "64GB"
depends on !M386 && !M486 depends on !M386 && !M486
select X86_PAE
help help
Select this if you have a 32-bit processor and more than 4 Select this if you have a 32-bit processor and more than 4
gigabytes of physical RAM. gigabytes of physical RAM.
...@@ -577,12 +578,12 @@ choice ...@@ -577,12 +578,12 @@ choice
config VMSPLIT_3G config VMSPLIT_3G
bool "3G/1G user/kernel split" bool "3G/1G user/kernel split"
config VMSPLIT_3G_OPT config VMSPLIT_3G_OPT
depends on !HIGHMEM depends on !X86_PAE
bool "3G/1G user/kernel split (for full 1G low memory)" bool "3G/1G user/kernel split (for full 1G low memory)"
config VMSPLIT_2G config VMSPLIT_2G
bool "2G/2G user/kernel split" bool "2G/2G user/kernel split"
config VMSPLIT_2G_OPT config VMSPLIT_2G_OPT
depends on !HIGHMEM depends on !X86_PAE
bool "2G/2G user/kernel split (for full 2G low memory)" bool "2G/2G user/kernel split (for full 2G low memory)"
config VMSPLIT_1G config VMSPLIT_1G
bool "1G/3G user/kernel split" bool "1G/3G user/kernel split"
...@@ -602,10 +603,15 @@ config HIGHMEM ...@@ -602,10 +603,15 @@ config HIGHMEM
default y default y
config X86_PAE config X86_PAE
bool bool "PAE (Physical Address Extension) Support"
depends on HIGHMEM64G default n
default y depends on !HIGHMEM4G
select RESOURCES_64BIT select RESOURCES_64BIT
help
PAE is required for NX support, and furthermore enables
larger swapspace support for non-overcommit purposes. It
has the cost of more pagetable lookup overhead, and also
consumes more pagetable space per process.
# Common NUMA Features # Common NUMA Features
config NUMA config NUMA
......
...@@ -273,18 +273,18 @@ unsigned long __init find_max_low_pfn(void) ...@@ -273,18 +273,18 @@ unsigned long __init find_max_low_pfn(void)
printk(KERN_WARNING "Warning only %ldMB will be used.\n", printk(KERN_WARNING "Warning only %ldMB will be used.\n",
MAXMEM>>20); MAXMEM>>20);
if (max_pfn > MAX_NONPAE_PFN) if (max_pfn > MAX_NONPAE_PFN)
printk(KERN_WARNING "Use a PAE enabled kernel.\n"); printk(KERN_WARNING "Use a HIGHMEM64G enabled kernel.\n");
else else
printk(KERN_WARNING "Use a HIGHMEM enabled kernel.\n"); printk(KERN_WARNING "Use a HIGHMEM enabled kernel.\n");
max_pfn = MAXMEM_PFN; max_pfn = MAXMEM_PFN;
#else /* !CONFIG_HIGHMEM */ #else /* !CONFIG_HIGHMEM */
#ifndef CONFIG_X86_PAE #ifndef CONFIG_HIGHMEM64G
if (max_pfn > MAX_NONPAE_PFN) { if (max_pfn > MAX_NONPAE_PFN) {
max_pfn = MAX_NONPAE_PFN; max_pfn = MAX_NONPAE_PFN;
printk(KERN_WARNING "Warning only 4GB will be used.\n"); printk(KERN_WARNING "Warning only 4GB will be used.\n");
printk(KERN_WARNING "Use a PAE enabled kernel.\n"); printk(KERN_WARNING "Use a HIGHMEM64G enabled kernel.\n");
} }
#endif /* !CONFIG_X86_PAE */ #endif /* !CONFIG_HIGHMEM64G */
#endif /* !CONFIG_HIGHMEM */ #endif /* !CONFIG_HIGHMEM */
} else { } else {
if (highmem_pages == -1) if (highmem_pages == -1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册