hc
2024-09-20 a36159eec6ca17402b0e146b86efaf76568dc353
kernel/arch/x86/Kconfig
....@@ -3,7 +3,7 @@
33 config 64BIT
44 bool "64-bit kernel" if "$(ARCH)" = "x86"
55 default "$(ARCH)" != "i386"
6
- ---help---
6
+ help
77 Say yes to build a 64-bit kernel - formerly known as x86_64
88 Say no to build a 32-bit kernel - formerly known as i386
99
....@@ -14,26 +14,36 @@
1414 select ARCH_WANT_IPC_PARSE_VERSION
1515 select CLKSRC_I8253
1616 select CLONE_BACKWARDS
17
- select HAVE_AOUT
18
- select HAVE_GENERIC_DMA_COHERENT
17
+ select HAVE_DEBUG_STACKOVERFLOW
1918 select MODULES_USE_ELF_REL
2019 select OLD_SIGACTION
2120 select GENERIC_VDSO_32
21
+ select ARCH_SPLIT_ARG64
2222
2323 config X86_64
2424 def_bool y
2525 depends on 64BIT
2626 # Options that are inherently 64-bit kernel only:
27
- select ARCH_HAS_GIGANTIC_PAGE if (MEMORY_ISOLATION && COMPACTION) || CMA
28
- select ARCH_SUPPORTS_INT128
27
+ select ARCH_HAS_GIGANTIC_PAGE
28
+ select ARCH_SUPPORTS_INT128 if CC_HAS_INT128
29
+ select ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT
2930 select ARCH_USE_CMPXCHG_LOCKREF
3031 select HAVE_ARCH_SOFT_DIRTY
3132 select MODULES_USE_ELF_RELA
3233 select NEED_DMA_MAP_STATE
3334 select SWIOTLB
34
- select X86_DEV_DMA_OPS
35
- select ARCH_HAS_SYSCALL_WRAPPER
3635
36
+config FORCE_DYNAMIC_FTRACE
37
+ def_bool y
38
+ depends on X86_32
39
+ depends on FUNCTION_TRACER
40
+ select DYNAMIC_FTRACE
41
+ help
42
+ We keep the static function tracing (!DYNAMIC_FTRACE) around
43
+ in order to test the non static function tracing in the
44
+ generic code, as other architectures still use it. But we
45
+ only need to keep it around for x86_64. No need to keep it
46
+ for x86_32. For x86_32, force DYNAMIC_FTRACE.
3747 #
3848 # Arch settings
3949 #
....@@ -47,50 +57,61 @@
4757 #
4858 select ACPI_LEGACY_TABLES_LOOKUP if ACPI
4959 select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI
50
- select ARCH_CLOCKSOURCE_DATA
51
- select ARCH_DISCARD_MEMBLOCK
60
+ select ARCH_32BIT_OFF_T if X86_32
61
+ select ARCH_CLOCKSOURCE_INIT
5262 select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
63
+ select ARCH_HAS_CPU_FINALIZE_INIT
5364 select ARCH_HAS_DEBUG_VIRTUAL
65
+ select ARCH_HAS_DEBUG_VM_PGTABLE if !X86_PAE
5466 select ARCH_HAS_DEVMEM_IS_ALLOWED
67
+ select ARCH_HAS_EARLY_DEBUG if KGDB
5568 select ARCH_HAS_ELF_RANDOMIZE
5669 select ARCH_HAS_FAST_MULTIPLIER
5770 select ARCH_HAS_FILTER_PGPROT
5871 select ARCH_HAS_FORTIFY_SOURCE
5972 select ARCH_HAS_GCOV_PROFILE_ALL
60
- select ARCH_HAS_KCOV if X86_64
73
+ select ARCH_HAS_KCOV if X86_64 && STACK_VALIDATION
74
+ select ARCH_HAS_MEM_ENCRYPT
6175 select ARCH_HAS_MEMBARRIER_SYNC_CORE
76
+ select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
6277 select ARCH_HAS_PMEM_API if X86_64
78
+ select ARCH_HAS_PTE_DEVMAP if X86_64
6379 select ARCH_HAS_PTE_SPECIAL
64
- select ARCH_HAS_REFCOUNT
6580 select ARCH_HAS_UACCESS_FLUSHCACHE if X86_64
66
- select ARCH_HAS_UACCESS_MCSAFE if X86_64 && X86_MCE
81
+ select ARCH_HAS_COPY_MC if X86_64
6782 select ARCH_HAS_SET_MEMORY
68
- select ARCH_HAS_SG_CHAIN
83
+ select ARCH_HAS_SET_DIRECT_MAP
6984 select ARCH_HAS_STRICT_KERNEL_RWX
7085 select ARCH_HAS_STRICT_MODULE_RWX
7186 select ARCH_HAS_SYNC_CORE_BEFORE_USERMODE
87
+ select ARCH_HAS_SYSCALL_WRAPPER
7288 select ARCH_HAS_UBSAN_SANITIZE_ALL
73
- select ARCH_HAS_ZONE_DEVICE if X86_64
89
+ select ARCH_HAS_DEBUG_WX
7490 select ARCH_HAVE_NMI_SAFE_CMPXCHG
7591 select ARCH_MIGHT_HAVE_ACPI_PDC if ACPI
7692 select ARCH_MIGHT_HAVE_PC_PARPORT
7793 select ARCH_MIGHT_HAVE_PC_SERIO
94
+ select ARCH_STACKWALK
7895 select ARCH_SUPPORTS_ACPI
7996 select ARCH_SUPPORTS_ATOMIC_RMW
8097 select ARCH_SUPPORTS_NUMA_BALANCING if X86_64
8198 select ARCH_SUPPORTS_LTO_CLANG if X86_64
99
+ select ARCH_SUPPORTS_LTO_CLANG_THIN if X86_64
82100 select ARCH_USE_BUILTIN_BSWAP
83101 select ARCH_USE_QUEUED_RWLOCKS
84102 select ARCH_USE_QUEUED_SPINLOCKS
103
+ select ARCH_USE_SYM_ANNOTATIONS
85104 select ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
105
+ select ARCH_WANT_DEFAULT_BPF_JIT if X86_64
86106 select ARCH_WANTS_DYNAMIC_TASK_STRUCT
107
+ select ARCH_WANT_HUGE_PMD_SHARE
108
+ select ARCH_WANT_LD_ORPHAN_WARN
87109 select ARCH_WANTS_THP_SWAP if X86_64
88
- select BUILDTIME_EXTABLE_SORT
110
+ select BUILDTIME_TABLE_SORT
89111 select CLKEVT_I8253
90112 select CLOCKSOURCE_VALIDATE_LAST_CYCLE
91113 select CLOCKSOURCE_WATCHDOG
92114 select DCACHE_WORD_ACCESS
93
- select DMA_DIRECT_OPS
94115 select EDAC_ATOMIC_SCRUB
95116 select EDAC_SUPPORT
96117 select GENERIC_CLOCKEVENTS
....@@ -100,6 +121,7 @@
100121 select GENERIC_CPU_AUTOPROBE
101122 select GENERIC_CPU_VULNERABILITIES
102123 select GENERIC_EARLY_IOREMAP
124
+ select GENERIC_ENTRY
103125 select GENERIC_FIND_FIRST_BIT
104126 select GENERIC_IOMAP
105127 select GENERIC_IRQ_EFFECTIVE_AFF_MASK if SMP
....@@ -109,11 +131,15 @@
109131 select GENERIC_IRQ_RESERVATION_MODE
110132 select GENERIC_IRQ_SHOW
111133 select GENERIC_PENDING_IRQ if SMP
134
+ select GENERIC_PTDUMP
112135 select GENERIC_SMP_IDLE_THREAD
113136 select GENERIC_STRNCPY_FROM_USER
114137 select GENERIC_STRNLEN_USER
115138 select GENERIC_TIME_VSYSCALL
116139 select GENERIC_GETTIMEOFDAY
140
+ select GENERIC_VDSO_TIME_NS
141
+ select GUP_GET_PTE_LOW_HIGH if X86_PAE
142
+ select HARDIRQS_SW_RESEND
117143 select HARDLOCKUP_CHECK_TIMESTAMP if X86_64
118144 select HAVE_ACPI_APEI if ACPI
119145 select HAVE_ACPI_APEI_NMI if ACPI
....@@ -121,32 +147,41 @@
121147 select HAVE_ARCH_AUDITSYSCALL
122148 select HAVE_ARCH_HUGE_VMAP if X86_64 || X86_PAE
123149 select HAVE_ARCH_JUMP_LABEL
150
+ select HAVE_ARCH_JUMP_LABEL_RELATIVE
124151 select HAVE_ARCH_KASAN if X86_64
152
+ select HAVE_ARCH_KASAN_VMALLOC if X86_64
153
+ select HAVE_ARCH_KFENCE
125154 select HAVE_ARCH_KGDB
126155 select HAVE_ARCH_MMAP_RND_BITS if MMU
127156 select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
128157 select HAVE_ARCH_COMPAT_MMAP_BASES if MMU && COMPAT
129
- select HAVE_ARCH_PREL32_RELOCATIONS if !LTO_CLANG
158
+ select HAVE_ARCH_PREL32_RELOCATIONS
130159 select HAVE_ARCH_SECCOMP_FILTER
131160 select HAVE_ARCH_THREAD_STRUCT_WHITELIST
161
+ select HAVE_ARCH_STACKLEAK
132162 select HAVE_ARCH_TRACEHOOK
133163 select HAVE_ARCH_TRANSPARENT_HUGEPAGE
134164 select HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD if X86_64
165
+ select HAVE_ARCH_USERFAULTFD_WP if X86_64 && USERFAULTFD
166
+ select HAVE_ARCH_USERFAULTFD_MINOR if X86_64 && USERFAULTFD
135167 select HAVE_ARCH_VMAP_STACK if X86_64
136168 select HAVE_ARCH_WITHIN_STACK_FRAMES
169
+ select HAVE_ASM_MODVERSIONS
137170 select HAVE_CMPXCHG_DOUBLE
138171 select HAVE_CMPXCHG_LOCAL
139172 select HAVE_CONTEXT_TRACKING if X86_64
140
- select HAVE_COPY_THREAD_TLS
141173 select HAVE_C_RECORDMCOUNT
174
+ select HAVE_OBJTOOL_MCOUNT if STACK_VALIDATION
142175 select HAVE_DEBUG_KMEMLEAK
143
- select HAVE_DEBUG_STACKOVERFLOW
144176 select HAVE_DMA_CONTIGUOUS
145177 select HAVE_DYNAMIC_FTRACE
146178 select HAVE_DYNAMIC_FTRACE_WITH_REGS
179
+ select HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
147180 select HAVE_EBPF_JIT
148181 select HAVE_EFFICIENT_UNALIGNED_ACCESS
182
+ select HAVE_EISA
149183 select HAVE_EXIT_THREAD
184
+ select HAVE_FAST_GUP
150185 select HAVE_FENTRY if X86_64 || DYNAMIC_FTRACE
151186 select HAVE_FTRACE_MCOUNT_RECORD
152187 select HAVE_FUNCTION_GRAPH_TRACER
....@@ -155,7 +190,6 @@
155190 select HAVE_HW_BREAKPOINT
156191 select HAVE_IDE
157192 select HAVE_IOREMAP_PROT
158
- select HAVE_IRQ_EXIT_ON_IRQ_STACK if X86_64
159193 select HAVE_IRQ_TIME_ACCOUNTING
160194 select HAVE_KERNEL_BZIP2
161195 select HAVE_KERNEL_GZIP
....@@ -163,16 +197,17 @@
163197 select HAVE_KERNEL_LZMA
164198 select HAVE_KERNEL_LZO
165199 select HAVE_KERNEL_XZ
200
+ select HAVE_KERNEL_ZSTD
166201 select HAVE_KPROBES
167202 select HAVE_KPROBES_ON_FTRACE
168203 select HAVE_FUNCTION_ERROR_INJECTION
169204 select HAVE_KRETPROBES
170205 select HAVE_KVM
171206 select HAVE_LIVEPATCH if X86_64
172
- select HAVE_MEMBLOCK
173
- select HAVE_MEMBLOCK_NODE_MAP
174207 select HAVE_MIXED_BREAKPOINTS_REGS
175208 select HAVE_MOD_ARCH_SPECIFIC
209
+ select HAVE_MOVE_PMD
210
+ select HAVE_MOVE_PUD
176211 select HAVE_NMI
177212 select HAVE_OPROFILE
178213 select HAVE_OPTPROBES
....@@ -180,14 +215,18 @@
180215 select HAVE_PERF_EVENTS
181216 select HAVE_PERF_EVENTS_NMI
182217 select HAVE_HARDLOCKUP_DETECTOR_PERF if PERF_EVENTS && HAVE_PERF_EVENTS_NMI
218
+ select HAVE_PCI
183219 select HAVE_PERF_REGS
184220 select HAVE_PERF_USER_STACK_DUMP
185
- select HAVE_RCU_TABLE_FREE if PARAVIRT
186
- select HAVE_RCU_TABLE_INVALIDATE if HAVE_RCU_TABLE_FREE
221
+ select MMU_GATHER_RCU_TABLE_FREE if PARAVIRT
222
+ select HAVE_POSIX_CPU_TIMERS_TASK_WORK
187223 select HAVE_REGS_AND_STACK_ACCESS_API
188224 select HAVE_RELIABLE_STACKTRACE if X86_64 && (UNWINDER_FRAME_POINTER || UNWINDER_ORC) && STACK_VALIDATION
225
+ select HAVE_FUNCTION_ARG_ACCESS_API
189226 select HAVE_STACKPROTECTOR if CC_HAS_SANE_STACKPROTECTOR
190
- select HAVE_STACK_VALIDATION if X86_64 && !LTO_CLANG
227
+ select HAVE_STACK_VALIDATION if X86_64
228
+ select HAVE_STATIC_CALL
229
+ select HAVE_STATIC_CALL_INLINE if HAVE_STACK_VALIDATION
191230 select HAVE_RSEQ
192231 select HAVE_SYSCALL_TRACEPOINTS
193232 select HAVE_UNSTABLE_SCHED_CLOCK
....@@ -196,17 +235,22 @@
196235 select HOTPLUG_SMT if SMP
197236 select IRQ_FORCED_THREADING
198237 select NEED_SG_DMA_LENGTH
199
- select PCI_LOCKLESS_CONFIG
238
+ select PCI_DOMAINS if PCI
239
+ select PCI_LOCKLESS_CONFIG if PCI
200240 select PERF_EVENTS
201241 select RTC_LIB
202242 select RTC_MC146818_LIB
203243 select SPARSE_IRQ
204244 select SRCU
245
+ select STACK_VALIDATION if HAVE_STACK_VALIDATION && (HAVE_STATIC_CALL_INLINE || RETPOLINE)
205246 select SYSCTL_EXCEPTION_TRACE
206247 select THREAD_INFO_IN_TASK
207248 select USER_STACKTRACE_SUPPORT
208249 select VIRT_TO_BUS
250
+ select HAVE_ARCH_KCSAN if X86_64
209251 select X86_FEATURE_NAMES if PROC_FS
252
+ select PROC_PID_ARCH_STATUS if PROC_FS
253
+ imply IMA_SECURE_AND_OR_TRUSTED_BOOT if EFI
210254
211255 config INSTRUCTION_DECODER
212256 def_bool y
....@@ -216,11 +260,6 @@
216260 string
217261 default "elf32-i386" if X86_32
218262 default "elf64-x86-64" if X86_64
219
-
220
-config ARCH_DEFCONFIG
221
- string
222
- default "arch/x86/configs/i386_defconfig" if X86_32
223
- default "arch/x86/configs/x86_64_defconfig" if X86_64
224263
225264 config LOCKDEP_SUPPORT
226265 def_bool y
....@@ -260,15 +299,9 @@
260299 config GENERIC_BUG_RELATIVE_POINTERS
261300 bool
262301
263
-config GENERIC_HWEIGHT
264
- def_bool y
265
-
266302 config ARCH_MAY_HAVE_PC_FDC
267303 def_bool y
268304 depends on ISA_DMA_API
269
-
270
-config RWSEM_XCHGADD_ALGORITHM
271
- def_bool y
272305
273306 config GENERIC_CALIBRATE_DELAY
274307 def_bool y
....@@ -297,9 +330,6 @@
297330 config ARCH_SUSPEND_POSSIBLE
298331 def_bool y
299332
300
-config ARCH_WANT_HUGE_PMD_SHARE
301
- def_bool y
302
-
303333 config ARCH_WANT_GENERAL_HUGETLB
304334 def_bool y
305335
....@@ -308,9 +338,6 @@
308338
309339 config AUDIT_ARCH
310340 def_bool y if X86_64
311
-
312
-config ARCH_SUPPORTS_OPTIMIZED_INLINING
313
- def_bool y
314341
315342 config ARCH_SUPPORTS_DEBUG_PAGEALLOC
316343 def_bool y
....@@ -374,7 +401,7 @@
374401
375402 config SMP
376403 bool "Symmetric multi-processing support"
377
- ---help---
404
+ help
378405 This enables support for systems with more than one CPU. If you have
379406 a system with only one CPU, say N. If you have a system with more
380407 than one CPU, say Y.
....@@ -394,8 +421,8 @@
394421 Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
395422 Management" code will be disabled if you say Y here.
396423
397
- See also <file:Documentation/x86/i386/IO-APIC.txt>,
398
- <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO available at
424
+ See also <file:Documentation/x86/i386/IO-APIC.rst>,
425
+ <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO available at
399426 <http://www.tldp.org/docs.html#howto>.
400427
401428 If you don't know what to do here, say N.
....@@ -403,7 +430,7 @@
403430 config X86_FEATURE_NAMES
404431 bool "Processor feature human-readable names" if EMBEDDED
405432 default y
406
- ---help---
433
+ help
407434 This option compiles in a table of x86 feature bits and corresponding
408435 names. This is required to support /proc/cpuinfo and a few kernel
409436 messages. You can disable this to save space, at the expense of
....@@ -414,7 +441,7 @@
414441 config X86_X2APIC
415442 bool "Support x2apic"
416443 depends on X86_LOCAL_APIC && X86_64 && (IRQ_REMAP || HYPERVISOR_GUEST)
417
- ---help---
444
+ help
418445 This enables x2apic support on CPUs that have this feature.
419446
420447 This allows 32-bit apic IDs (so it can support very large systems),
....@@ -426,34 +453,32 @@
426453 bool "Enable MPS table" if ACPI || SFI
427454 default y
428455 depends on X86_LOCAL_APIC
429
- ---help---
456
+ help
430457 For old smp systems that do not have proper acpi support. Newer systems
431458 (esp with 64bit cpus) with acpi support, MADT and DSDT will override it
432459
433460 config GOLDFISH
434
- def_bool y
435
- depends on X86_GOLDFISH
461
+ def_bool y
462
+ depends on X86_GOLDFISH
436463
437
-config RETPOLINE
438
- bool "Avoid speculative indirect branches in kernel"
439
- default y
440
- select STACK_VALIDATION if HAVE_STACK_VALIDATION
441
- help
442
- Compile kernel with the retpoline compiler options to guard against
443
- kernel-to-user data leaks by avoiding speculative indirect
444
- branches. Requires a compiler with -mindirect-branch=thunk-extern
445
- support for full protection. The kernel may run slower.
446
-
447
-config INTEL_RDT
448
- bool "Intel Resource Director Technology support"
449
- default n
450
- depends on X86 && CPU_SUP_INTEL
464
+config X86_CPU_RESCTRL
465
+ bool "x86 CPU resource control support"
466
+ depends on X86 && (CPU_SUP_INTEL || CPU_SUP_AMD)
451467 select KERNFS
468
+ select PROC_CPU_RESCTRL if PROC_FS
452469 help
453
- Select to enable resource allocation and monitoring which are
454
- sub-features of Intel Resource Director Technology(RDT). More
455
- information about RDT can be found in the Intel x86
456
- Architecture Software Developer Manual.
470
+ Enable x86 CPU resource control support.
471
+
472
+ Provide support for the allocation and monitoring of system resources
473
+ usage by the CPU.
474
+
475
+ Intel calls this Intel Resource Director Technology
476
+ (Intel(R) RDT). More information about RDT can be found in the
477
+ Intel x86 Architecture Software Developer Manual.
478
+
479
+ AMD calls this AMD Platform Quality of Service (AMD QoS).
480
+ More information about AMD QoS can be found in the AMD64 Technology
481
+ Platform Quality of Service Extensions manual.
457482
458483 Say N if unsure.
459484
....@@ -461,13 +486,13 @@
461486 config X86_BIGSMP
462487 bool "Support for big SMP systems with more than 8 CPUs"
463488 depends on SMP
464
- ---help---
465
- This option is needed for the systems that have more than 8 CPUs
489
+ help
490
+ This option is needed for the systems that have more than 8 CPUs.
466491
467492 config X86_EXTENDED_PLATFORM
468493 bool "Support for extended (non-PC) x86 platforms"
469494 default y
470
- ---help---
495
+ help
471496 If you disable this option then the kernel will only support
472497 standard PC platforms. (which covers the vast majority of
473498 systems out there.)
....@@ -489,7 +514,7 @@
489514 config X86_EXTENDED_PLATFORM
490515 bool "Support for extended (non-PC) x86 platforms"
491516 default y
492
- ---help---
517
+ help
493518 If you disable this option then the kernel will only support
494519 standard PC platforms. (which covers the vast majority of
495520 systems out there.)
....@@ -513,7 +538,7 @@
513538 depends on SMP
514539 depends on X86_X2APIC
515540 depends on PCI_MMCONFIG
516
- ---help---
541
+ help
517542 Adds support for Numascale NumaChip large-SMP systems. Needed to
518543 enable more than ~168 cores.
519544 If you don't have one of these, you should say N here.
....@@ -525,7 +550,7 @@
525550 depends on X86_64 && PCI
526551 depends on X86_EXTENDED_PLATFORM
527552 depends on SMP
528
- ---help---
553
+ help
529554 Support for ScaleMP vSMP systems. Say 'Y' here if this kernel is
530555 supposed to run on these EM64T-based machines. Only choose this option
531556 if you have one of these machines.
....@@ -539,7 +564,7 @@
539564 depends on KEXEC_CORE
540565 depends on X86_X2APIC
541566 depends on PCI
542
- ---help---
567
+ help
543568 This option is needed in order to support SGI Ultraviolet systems.
544569 If you don't have one of these, you should say N here.
545570
....@@ -547,9 +572,9 @@
547572 # Please maintain the alphabetic order if and when there are additions
548573
549574 config X86_GOLDFISH
550
- bool "Goldfish (Virtual Platform)"
551
- depends on X86_EXTENDED_PLATFORM
552
- ---help---
575
+ bool "Goldfish (Virtual Platform)"
576
+ depends on X86_EXTENDED_PLATFORM
577
+ help
553578 Enable support for the Goldfish virtual platform used primarily
554579 for Android development. Unless you are building for the Android
555580 Goldfish emulator say N here.
....@@ -564,7 +589,7 @@
564589 select X86_REBOOTFIXUPS
565590 select OF
566591 select OF_EARLY_FLATTREE
567
- ---help---
592
+ help
568593 Select for the Intel CE media processor (CE4100) SOC.
569594 This option compiles in support for the CE4100 SOC for settop
570595 boxes and media devices.
....@@ -580,9 +605,9 @@
580605 select I2C
581606 select DW_APB_TIMER
582607 select APB_TIMER
583
- select INTEL_SCU_IPC
608
+ select INTEL_SCU_PCI
584609 select MFD_INTEL_MSIC
585
- ---help---
610
+ help
586611 Select to build a kernel capable of supporting Intel MID (Mobile
587612 Internet Device) platform systems which do not have the PCI legacy
588613 interfaces. If you are building for a PC class system say N here.
....@@ -602,18 +627,18 @@
602627 select IOSF_MBI
603628 select INTEL_IMR
604629 select COMMON_CLK
605
- ---help---
630
+ help
606631 Select to include support for Quark X1000 SoC.
607632 Say Y here if you have a Quark based system such as the Arduino
608633 compatible Intel Galileo.
609634
610635 config X86_INTEL_LPSS
611636 bool "Intel Low Power Subsystem Support"
612
- depends on X86 && ACPI
637
+ depends on X86 && ACPI && PCI
613638 select COMMON_CLK
614639 select PINCTRL
615640 select IOSF_MBI
616
- ---help---
641
+ help
617642 Select to build support for Intel Low Power Subsystem such as
618643 found on Intel Lynxpoint PCH. Selecting this option enables
619644 things like clock tree (common clock framework) and pincontrol
....@@ -624,7 +649,7 @@
624649 depends on ACPI
625650 select COMMON_CLK
626651 select PINCTRL
627
- ---help---
652
+ help
628653 Select to interpret AMD specific ACPI device to platform device
629654 such as I2C, UART, GPIO found on AMD Carrizo and later chipsets.
630655 I2C and UART depend on COMMON_CLK to set clock. GPIO driver is
....@@ -633,7 +658,7 @@
633658 config IOSF_MBI
634659 tristate "Intel SoC IOSF Sideband support for SoC platforms"
635660 depends on PCI
636
- ---help---
661
+ help
637662 This option enables sideband register access support for Intel SoC
638663 platforms. On these platforms the IOSF sideband is used in lieu of
639664 MSR's for some register accesses, mostly but not limited to thermal
....@@ -650,7 +675,7 @@
650675 config IOSF_MBI_DEBUG
651676 bool "Enable IOSF sideband access through debugfs"
652677 depends on IOSF_MBI && DEBUG_FS
653
- ---help---
678
+ help
654679 Select this option to expose the IOSF sideband access registers (MCR,
655680 MDR, MCRX) through debugfs to write and read register information from
656681 different units on the SoC. This is most useful for obtaining device
....@@ -666,7 +691,7 @@
666691 depends on X86_EXTENDED_PLATFORM
667692 select M486
668693 select X86_REBOOTFIXUPS
669
- ---help---
694
+ help
670695 This option is needed for RDC R-321x system-on-chip, also known
671696 as R-8610-(G).
672697 If you don't have one of these chips, you should say N here.
....@@ -675,7 +700,7 @@
675700 bool "Support non-standard 32-bit SMP architectures"
676701 depends on X86_32 && SMP
677702 depends on X86_EXTENDED_PLATFORM
678
- ---help---
703
+ help
679704 This option compiles in the bigsmp and STA2X11 default
680705 subarchitectures. It is intended for a generic binary
681706 kernel. If you select them all, kernel will probe it one by
....@@ -695,14 +720,10 @@
695720 config STA2X11
696721 bool "STA2X11 Companion Chip Support"
697722 depends on X86_32_NON_STANDARD && PCI
698
- select ARCH_HAS_PHYS_TO_DMA
699
- select X86_DEV_DMA_OPS
700
- select X86_DMA_REMAP
701723 select SWIOTLB
702724 select MFD_STA2X11
703725 select GPIOLIB
704
- default n
705
- ---help---
726
+ help
706727 This adds support for boards based on the STA2X11 IO-Hub,
707728 a.k.a. "ConneXt". The chip is used in place of the standard
708729 PC chipset, so all "standard" peripherals are missing. If this
....@@ -712,7 +733,7 @@
712733 config X86_32_IRIS
713734 tristate "Eurobraille/Iris poweroff module"
714735 depends on X86_32
715
- ---help---
736
+ help
716737 The Iris machines from EuroBraille do not have APM or ACPI support
717738 to shut themselves down properly. A special I/O sequence is
718739 needed to do so, which is what this module does at
....@@ -726,7 +747,7 @@
726747 def_bool y
727748 prompt "Single-depth WCHAN output"
728749 depends on X86
729
- ---help---
750
+ help
730751 Calculate simpler /proc/<PID>/wchan values. If this option
731752 is disabled then wchan values will recurse back to the
732753 caller function. This provides more accurate wchan values,
....@@ -736,7 +757,7 @@
736757
737758 menuconfig HYPERVISOR_GUEST
738759 bool "Linux guest support"
739
- ---help---
760
+ help
740761 Say Y here to enable options for running Linux under various hyper-
741762 visors. This option enables basic hypervisor detection and platform
742763 setup.
....@@ -748,23 +769,26 @@
748769
749770 config PARAVIRT
750771 bool "Enable paravirtualization code"
751
- ---help---
772
+ help
752773 This changes the kernel so it can modify itself when it is run
753774 under a hypervisor, potentially improving performance significantly
754775 over full virtualization. However, when run without a hypervisor
755776 the kernel is theoretically slower and slightly larger.
756777
778
+config PARAVIRT_XXL
779
+ bool
780
+
757781 config PARAVIRT_DEBUG
758782 bool "paravirt-ops debugging"
759783 depends on PARAVIRT && DEBUG_KERNEL
760
- ---help---
784
+ help
761785 Enable to debug paravirt_ops internals. Specifically, BUG if
762786 a paravirt_op is missing when it is called.
763787
764788 config PARAVIRT_SPINLOCKS
765789 bool "Paravirtualization layer for spinlocks"
766790 depends on PARAVIRT && SMP
767
- ---help---
791
+ help
768792 Paravirtualized spinlocks allow a pvops backend to replace the
769793 spinlock implementation with something virtualization-friendly
770794 (for example, block the virtual CPU rather than spinning).
....@@ -774,13 +798,8 @@
774798
775799 If you are unsure how to answer this question, answer Y.
776800
777
-config QUEUED_LOCK_STAT
778
- bool "Paravirt queued spinlock statistics"
779
- depends on PARAVIRT_SPINLOCKS && DEBUG_FS
780
- ---help---
781
- Enable the collection of statistical data on the slowpath
782
- behavior of paravirtualized queued spinlocks and report
783
- them on debugfs.
801
+config X86_HV_CALLBACK_VECTOR
802
+ def_bool n
784803
785804 source "arch/x86/xen/Kconfig"
786805
....@@ -788,28 +807,32 @@
788807 bool "KVM Guest support (including kvmclock)"
789808 depends on PARAVIRT
790809 select PARAVIRT_CLOCK
810
+ select ARCH_CPUIDLE_HALTPOLL
811
+ select X86_HV_CALLBACK_VECTOR
791812 default y
792
- ---help---
813
+ help
793814 This option enables various optimizations for running under the KVM
794815 hypervisor. It includes a paravirtualized clock, so that instead
795816 of relying on a PIT (or probably other) emulation by the
796817 underlying device model, the host provides the guest with
797818 timing infrastructure such as time of day, and system time
798819
799
-config KVM_DEBUG_FS
800
- bool "Enable debug information for KVM Guests in debugfs"
801
- depends on KVM_GUEST && DEBUG_FS
802
- default n
803
- ---help---
804
- This option enables collection of various statistics for KVM guest.
805
- Statistics are displayed in debugfs filesystem. Enabling this option
806
- may incur significant overhead.
820
+config ARCH_CPUIDLE_HALTPOLL
821
+ def_bool n
822
+ prompt "Disable host haltpoll when loading haltpoll driver"
823
+ help
824
+ If virtualized under KVM, disable host haltpoll.
825
+
826
+config PVH
827
+ bool "Support for running PVH guests"
828
+ help
829
+ This option enables the PVH entry point for guest virtual machines
830
+ as specified in the x86/HVM direct boot ABI.
807831
808832 config PARAVIRT_TIME_ACCOUNTING
809833 bool "Paravirtual steal time accounting"
810834 depends on PARAVIRT
811
- default n
812
- ---help---
835
+ help
813836 Select this option to enable fine granularity task steal time
814837 accounting. Time spent executing other tasks in parallel with
815838 the current vCPU is discounted from the vCPU power. To account for
....@@ -824,22 +847,30 @@
824847 bool "Jailhouse non-root cell support"
825848 depends on X86_64 && PCI
826849 select X86_PM_TIMER
827
- ---help---
850
+ help
828851 This option allows to run Linux as guest in a Jailhouse non-root
829852 cell. You can leave this option disabled if you only want to start
830853 Jailhouse and run Linux afterwards in the root cell.
831854
832
-endif #HYPERVISOR_GUEST
855
+config ACRN_GUEST
856
+ bool "ACRN Guest support"
857
+ depends on X86_64
858
+ select X86_HV_CALLBACK_VECTOR
859
+ help
860
+ This option allows to run Linux as guest in the ACRN hypervisor. ACRN is
861
+ a flexible, lightweight reference open-source hypervisor, built with
862
+ real-time and safety-criticality in mind. It is built for embedded
863
+ IOT with small footprint and real-time features. More details can be
864
+ found in https://projectacrn.org/.
833865
834
-config NO_BOOTMEM
835
- def_bool y
866
+endif #HYPERVISOR_GUEST
836867
837868 source "arch/x86/Kconfig.cpu"
838869
839870 config HPET_TIMER
840871 def_bool X86_64
841872 prompt "HPET Timer Support" if X86_32
842
- ---help---
873
+ help
843874 Use the IA-PC HPET (High Precision Event Timer) to manage
844875 time in preference to the PIT and RTC, if a HPET is
845876 present.
....@@ -860,16 +891,16 @@
860891 depends on HPET_TIMER && (RTC=y || RTC=m || RTC_DRV_CMOS=m || RTC_DRV_CMOS=y)
861892
862893 config APB_TIMER
863
- def_bool y if X86_INTEL_MID
864
- prompt "Intel MID APB Timer Support" if X86_INTEL_MID
865
- select DW_APB_TIMER
866
- depends on X86_INTEL_MID && SFI
867
- help
868
- APB timer is the replacement for 8254, HPET on X86 MID platforms.
869
- The APBT provides a stable time base on SMP
870
- systems, unlike the TSC, but it is more expensive to access,
871
- as it is off-chip. APB timers are always running regardless of CPU
872
- C states, they are used as per CPU clockevent device when possible.
894
+ def_bool y if X86_INTEL_MID
895
+ prompt "Intel MID APB Timer Support" if X86_INTEL_MID
896
+ select DW_APB_TIMER
897
+ depends on X86_INTEL_MID && SFI
898
+ help
899
+ APB timer is the replacement for 8254, HPET on X86 MID platforms.
900
+ The APBT provides a stable time base on SMP
901
+ systems, unlike the TSC, but it is more expensive to access,
902
+ as it is off-chip. APB timers are always running regardless of CPU
903
+ C states, they are used as per CPU clockevent device when possible.
873904
874905 # Mark as expert because too many people got it wrong.
875906 # The code disables itself when not needed.
....@@ -877,7 +908,7 @@
877908 default y
878909 select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
879910 bool "Enable DMI scanning" if EXPERT
880
- ---help---
911
+ help
881912 Enabled scanning of DMI to identify machine quirks. Say Y
882913 here unless you have verified that your setup is not
883914 affected by entries in the DMI blacklist. Required by PNP
....@@ -885,10 +916,11 @@
885916
886917 config GART_IOMMU
887918 bool "Old AMD GART IOMMU support"
919
+ select DMA_OPS
888920 select IOMMU_HELPER
889921 select SWIOTLB
890922 depends on X86_64 && PCI && AMD_NB
891
- ---help---
923
+ help
892924 Provides a driver for older AMD Athlon64/Opteron/Turion/Sempron
893925 GART based hardware IOMMUs.
894926
....@@ -905,41 +937,11 @@
905937
906938 If unsure, say Y.
907939
908
-config CALGARY_IOMMU
909
- bool "IBM Calgary IOMMU support"
910
- select IOMMU_HELPER
911
- select SWIOTLB
912
- depends on X86_64 && PCI
913
- ---help---
914
- Support for hardware IOMMUs in IBM's xSeries x366 and x460
915
- systems. Needed to run systems with more than 3GB of memory
916
- properly with 32-bit PCI devices that do not support DAC
917
- (Double Address Cycle). Calgary also supports bus level
918
- isolation, where all DMAs pass through the IOMMU. This
919
- prevents them from going anywhere except their intended
920
- destination. This catches hard-to-find kernel bugs and
921
- mis-behaving drivers and devices that do not use the DMA-API
922
- properly to set up their DMA buffers. The IOMMU can be
923
- turned off at boot time with the iommu=off parameter.
924
- Normally the kernel will make the right choice by itself.
925
- If unsure, say Y.
926
-
927
-config CALGARY_IOMMU_ENABLED_BY_DEFAULT
928
- def_bool y
929
- prompt "Should Calgary be enabled by default?"
930
- depends on CALGARY_IOMMU
931
- ---help---
932
- Should Calgary be enabled by default? if you choose 'y', Calgary
933
- will be used (if it exists). If you choose 'n', Calgary will not be
934
- used even if it exists. If you choose 'n' and would like to use
935
- Calgary anyway, pass 'iommu=calgary' on the kernel command line.
936
- If unsure, say Y.
937
-
938940 config MAXSMP
939941 bool "Enable Maximum number of SMP Processors and NUMA Nodes"
940942 depends on X86_64 && SMP && DEBUG_KERNEL
941943 select CPUMASK_OFFSTACK
942
- ---help---
944
+ help
943945 Enable maximum number of CPUS and NUMA Nodes for this architecture.
944946 If unsure, say N.
945947
....@@ -973,8 +975,8 @@
973975 config NR_CPUS_RANGE_END
974976 int
975977 depends on X86_64
976
- default 8192 if SMP && ( MAXSMP || CPUMASK_OFFSTACK)
977
- default 512 if SMP && (!MAXSMP && !CPUMASK_OFFSTACK)
978
+ default 8192 if SMP && CPUMASK_OFFSTACK
979
+ default 512 if SMP && !CPUMASK_OFFSTACK
978980 default 1 if !SMP
979981
980982 config NR_CPUS_DEFAULT
....@@ -995,7 +997,7 @@
995997 int "Maximum number of CPUs" if SMP && !MAXSMP
996998 range NR_CPUS_RANGE_BEGIN NR_CPUS_RANGE_END
997999 default NR_CPUS_DEFAULT
998
- ---help---
1000
+ help
9991001 This allows you to specify the maximum number of CPUs which this
10001002 kernel will support. If CPUMASK_OFFSTACK is enabled, the maximum
10011003 supported value is 8192, otherwise the maximum value is 512. The
....@@ -1011,7 +1013,7 @@
10111013 def_bool y
10121014 prompt "Multi-core scheduler support"
10131015 depends on SMP
1014
- ---help---
1016
+ help
10151017 Multi-core scheduler support improves the CPU scheduler's decision
10161018 making when dealing with multi-core CPU chips at a cost of slightly
10171019 increased overhead in some places. If unsure say N here.
....@@ -1022,7 +1024,7 @@
10221024 select X86_INTEL_PSTATE
10231025 select CPU_FREQ
10241026 default y
1025
- ---help---
1027
+ help
10261028 Intel Turbo Boost Max Technology 3.0 enabled CPUs have a
10271029 core ordering determined at manufacturing time, which allows
10281030 certain cores to reach higher turbo frequencies (when running
....@@ -1038,14 +1040,14 @@
10381040 If unsure say Y here.
10391041
10401042 config UP_LATE_INIT
1041
- def_bool y
1042
- depends on !SMP && X86_LOCAL_APIC
1043
+ def_bool y
1044
+ depends on !SMP && X86_LOCAL_APIC
10431045
10441046 config X86_UP_APIC
10451047 bool "Local APIC support on uniprocessors" if !PCI_MSI
10461048 default PCI_MSI
10471049 depends on X86_32 && !SMP && !X86_32_NON_STANDARD
1048
- ---help---
1050
+ help
10491051 A local APIC (Advanced Programmable Interrupt Controller) is an
10501052 integrated interrupt controller in the CPU. If you have a single-CPU
10511053 system which has a processor with a local APIC, you can say Y here to
....@@ -1058,7 +1060,7 @@
10581060 config X86_UP_IOAPIC
10591061 bool "IO-APIC support on uniprocessors"
10601062 depends on X86_UP_APIC
1061
- ---help---
1063
+ help
10621064 An IO-APIC (I/O Advanced Programmable Interrupt Controller) is an
10631065 SMP-capable replacement for PC-style interrupt controllers. Most
10641066 SMP systems and many recent uniprocessor systems have one.
....@@ -1080,7 +1082,7 @@
10801082 config X86_REROUTE_FOR_BROKEN_BOOT_IRQS
10811083 bool "Reroute for broken boot IRQs"
10821084 depends on X86_IO_APIC
1083
- ---help---
1085
+ help
10841086 This option enables a workaround that fixes a source of
10851087 spurious interrupts. This is recommended when threaded
10861088 interrupt handling is used on systems where the generation of
....@@ -1104,7 +1106,7 @@
11041106 bool "Machine Check / overheating reporting"
11051107 select GENERIC_ALLOCATOR
11061108 default y
1107
- ---help---
1109
+ help
11081110 Machine Check support allows the processor to notify the
11091111 kernel if it detects a problem (e.g. overheating, data corruption).
11101112 The action the kernel takes depends on the severity of the problem,
....@@ -1113,7 +1115,7 @@
11131115 config X86_MCELOG_LEGACY
11141116 bool "Support for deprecated /dev/mcelog character device"
11151117 depends on X86_MCE
1116
- ---help---
1118
+ help
11171119 Enable support for /dev/mcelog which is needed by the old mcelog
11181120 userspace logging daemon. Consider switching to the new generation
11191121 rasdaemon solution.
....@@ -1122,7 +1124,7 @@
11221124 def_bool y
11231125 prompt "Intel MCE features"
11241126 depends on X86_MCE && X86_LOCAL_APIC
1125
- ---help---
1127
+ help
11261128 Additional support for intel specific MCE features such as
11271129 the thermal monitor.
11281130
....@@ -1130,14 +1132,14 @@
11301132 def_bool y
11311133 prompt "AMD MCE features"
11321134 depends on X86_MCE && X86_LOCAL_APIC && AMD_NB
1133
- ---help---
1135
+ help
11341136 Additional support for AMD specific MCE features such as
11351137 the DRAM Error Threshold.
11361138
11371139 config X86_ANCIENT_MCE
11381140 bool "Support for old Pentium 5 / WinChip machine checks"
11391141 depends on X86_32 && X86_MCE
1140
- ---help---
1142
+ help
11411143 Include support for machine check handling on old Pentium 5 or WinChip
11421144 systems. These typically need to be enabled explicitly on the command
11431145 line.
....@@ -1149,7 +1151,7 @@
11491151 config X86_MCE_INJECT
11501152 depends on X86_MCE && X86_LOCAL_APIC && DEBUG_FS
11511153 tristate "Machine check injector support"
1152
- ---help---
1154
+ help
11531155 Provide support for injecting machine checks for testing purposes.
11541156 If you don't know what a machine check is and you don't do kernel
11551157 QA it is safe to say n.
....@@ -1162,9 +1164,8 @@
11621164
11631165 config X86_LEGACY_VM86
11641166 bool "Legacy VM86 support"
1165
- default n
11661167 depends on X86_32
1167
- ---help---
1168
+ help
11681169 This option allows user programs to put the CPU into V8086
11691170 mode, which is an 80286-era approximation of 16-bit real mode.
11701171
....@@ -1189,14 +1190,14 @@
11891190 If unsure, say N here.
11901191
11911192 config VM86
1192
- bool
1193
- default X86_LEGACY_VM86
1193
+ bool
1194
+ default X86_LEGACY_VM86
11941195
11951196 config X86_16BIT
11961197 bool "Enable support for 16-bit segments" if EXPERT
11971198 default y
11981199 depends on MODIFY_LDT_SYSCALL
1199
- ---help---
1200
+ help
12001201 This option is required by programs like Wine to run 16-bit
12011202 protected mode legacy code on x86 processors. Disabling
12021203 this option saves about 300 bytes on i386, or around 6K text
....@@ -1211,10 +1212,10 @@
12111212 depends on X86_16BIT && X86_64
12121213
12131214 config X86_VSYSCALL_EMULATION
1214
- bool "Enable vsyscall emulation" if EXPERT
1215
- default y
1216
- depends on X86_64
1217
- ---help---
1215
+ bool "Enable vsyscall emulation" if EXPERT
1216
+ default y
1217
+ depends on X86_64
1218
+ help
12181219 This enables emulation of the legacy vsyscall page. Disabling
12191220 it is roughly equivalent to booting with vsyscall=none, except
12201221 that it will also disable the helpful warning if a program
....@@ -1228,10 +1229,28 @@
12281229 Disabling this option saves about 7K of kernel size and
12291230 possibly 4K of additional runtime pagetable memory.
12301231
1232
+config X86_IOPL_IOPERM
1233
+ bool "IOPERM and IOPL Emulation"
1234
+ default y
1235
+ help
1236
+ This enables the ioperm() and iopl() syscalls which are necessary
1237
+ for legacy applications.
1238
+
1239
+ Legacy IOPL support is an overbroad mechanism which allows user
1240
+ space aside of accessing all 65536 I/O ports also to disable
1241
+ interrupts. To gain this access the caller needs CAP_SYS_RAWIO
1242
+ capabilities and permission from potentially active security
1243
+ modules.
1244
+
1245
+ The emulation restricts the functionality of the syscall to
1246
+ only allowing the full range I/O port access, but prevents the
1247
+ ability to disable interrupts from user space which would be
1248
+ granted if the hardware IOPL mechanism would be used.
1249
+
12311250 config TOSHIBA
12321251 tristate "Toshiba Laptop support"
12331252 depends on X86_32
1234
- ---help---
1253
+ help
12351254 This adds a driver to safely access the System Management Mode of
12361255 the CPU on Toshiba portables with a genuine Toshiba BIOS. It does
12371256 not work on models with a Phoenix BIOS. The System Management Mode
....@@ -1246,9 +1265,10 @@
12461265
12471266 config I8K
12481267 tristate "Dell i8k legacy laptop support"
1249
- select HWMON
1268
+ depends on HWMON
1269
+ depends on PROC_FS
12501270 select SENSORS_DELL_SMM
1251
- ---help---
1271
+ help
12521272 This option enables legacy /proc/i8k userspace interface in hwmon
12531273 dell-smm-hwmon driver. Character file /proc/i8k reports bios version,
12541274 temperature and allows controlling fan speeds of Dell laptops via
....@@ -1263,7 +1283,7 @@
12631283 config X86_REBOOTFIXUPS
12641284 bool "Enable X86 board specific fixups for reboot"
12651285 depends on X86_32
1266
- ---help---
1286
+ help
12671287 This enables chipset and/or board specific fixups to be done
12681288 in order to get reboot to work correctly. This is only needed on
12691289 some combinations of hardware and BIOS. The symptom, for which
....@@ -1281,8 +1301,7 @@
12811301 bool "CPU microcode loading support"
12821302 default y
12831303 depends on CPU_SUP_AMD || CPU_SUP_INTEL
1284
- select FW_LOADER
1285
- ---help---
1304
+ help
12861305 If you say Y here, you will be able to update the microcode on
12871306 Intel and AMD processors. The Intel support is for the IA32 family,
12881307 e.g. Pentium Pro, Pentium II, Pentium III, Pentium 4, Xeon etc. The
....@@ -1291,7 +1310,7 @@
12911310 the Linux kernel.
12921311
12931312 The preferred method to load microcode from a detached initrd is described
1294
- in Documentation/x86/microcode.txt. For that you need to enable
1313
+ in Documentation/x86/microcode.rst. For that you need to enable
12951314 CONFIG_BLK_DEV_INITRD in order for the loader to be able to scan the
12961315 initrd for microcode blobs.
12971316
....@@ -1301,10 +1320,9 @@
13011320
13021321 config MICROCODE_INTEL
13031322 bool "Intel microcode loading support"
1304
- depends on MICROCODE
1323
+ depends on CPU_SUP_INTEL && MICROCODE
13051324 default MICROCODE
1306
- select FW_LOADER
1307
- ---help---
1325
+ help
13081326 This options enables microcode patch loading support for Intel
13091327 processors.
13101328
....@@ -1314,19 +1332,25 @@
13141332
13151333 config MICROCODE_AMD
13161334 bool "AMD microcode loading support"
1317
- depends on MICROCODE
1318
- select FW_LOADER
1319
- ---help---
1335
+ depends on CPU_SUP_AMD && MICROCODE
1336
+ help
13201337 If you select this option, microcode patch loading support for AMD
13211338 processors will be enabled.
13221339
1323
-config MICROCODE_OLD_INTERFACE
1324
- def_bool y
1340
+config MICROCODE_LATE_LOADING
1341
+ bool "Late microcode loading (DANGEROUS)"
1342
+ default n
13251343 depends on MICROCODE
1344
+ help
1345
+ Loading microcode late, when the system is up and executing instructions
1346
+ is a tricky business and should be avoided if possible. Just the sequence
1347
+ of synchronizing all cores and SMT threads is one fragile dance which does
1348
+ not guarantee that cores might not softlock after the loading. Therefore,
1349
+ use this at your own risk. Late loading taints the kernel too.
13261350
13271351 config X86_MSR
13281352 tristate "/dev/cpu/*/msr - Model-specific register support"
1329
- ---help---
1353
+ help
13301354 This device gives privileged processes access to the x86
13311355 Model-Specific Registers (MSRs). It is a character device with
13321356 major 202 and minors 0 to 31 for /dev/cpu/0/msr to /dev/cpu/31/msr.
....@@ -1335,7 +1359,7 @@
13351359
13361360 config X86_CPUID
13371361 tristate "/dev/cpu/*/cpuid - CPU information support"
1338
- ---help---
1362
+ help
13391363 This device gives processes access to the x86 CPUID instruction to
13401364 be executed on a specific processor. It is a character device
13411365 with major 203 and minors 0 to 31 for /dev/cpu/0/cpuid to
....@@ -1348,7 +1372,7 @@
13481372
13491373 config NOHIGHMEM
13501374 bool "off"
1351
- ---help---
1375
+ help
13521376 Linux can use up to 64 Gigabytes of physical memory on x86 systems.
13531377 However, the address space of 32-bit x86 processors is only 4
13541378 Gigabytes large. That means that, if you have a large amount of
....@@ -1384,15 +1408,15 @@
13841408
13851409 config HIGHMEM4G
13861410 bool "4GB"
1387
- ---help---
1411
+ help
13881412 Select this if you have a 32-bit processor and between 1 and 4
13891413 gigabytes of physical RAM.
13901414
13911415 config HIGHMEM64G
13921416 bool "64GB"
1393
- depends on !M486 && !M586 && !M586TSC && !M586MMX && !MGEODE_LX && !MGEODEGX1 && !MCYRIXIII && !MELAN && !MWINCHIPC6 && !MWINCHIP3D && !MK6
1417
+ depends on !M486SX && !M486 && !M586 && !M586TSC && !M586MMX && !MGEODE_LX && !MGEODEGX1 && !MCYRIXIII && !MELAN && !MWINCHIPC6 && !MWINCHIP3D && !MK6
13941418 select X86_PAE
1395
- ---help---
1419
+ help
13961420 Select this if you have a 32-bit processor and more than 4
13971421 gigabytes of physical RAM.
13981422
....@@ -1402,7 +1426,7 @@
14021426 prompt "Memory split" if EXPERT
14031427 default VMSPLIT_3G
14041428 depends on X86_32
1405
- ---help---
1429
+ help
14061430 Select the desired split between kernel and user memory.
14071431
14081432 If the address range available to the kernel is less than the
....@@ -1450,7 +1474,7 @@
14501474 depends on X86_32 && !HIGHMEM4G
14511475 select PHYS_ADDR_T_64BIT
14521476 select SWIOTLB
1453
- ---help---
1477
+ help
14541478 PAE is required for NX support, and furthermore enables
14551479 larger swapspace support for non-overcommit purposes. It
14561480 has the cost of more pagetable lookup overhead, and also
....@@ -1458,10 +1482,11 @@
14581482
14591483 config X86_5LEVEL
14601484 bool "Enable 5-level page tables support"
1485
+ default y
14611486 select DYNAMIC_MEMORY_LAYOUT
14621487 select SPARSEMEM_VMEMMAP
14631488 depends on X86_64
1464
- ---help---
1489
+ help
14651490 5-level paging enables access to larger address space:
14661491 upto 128 PiB of virtual address space and 4 PiB of
14671492 physical address space.
....@@ -1471,29 +1496,38 @@
14711496 A kernel with the option enabled can be booted on machines that
14721497 support 4- or 5-level paging.
14731498
1474
- See Documentation/x86/x86_64/5level-paging.txt for more
1499
+ See Documentation/x86/x86_64/5level-paging.rst for more
14751500 information.
14761501
14771502 Say N if unsure.
14781503
14791504 config X86_DIRECT_GBPAGES
14801505 def_bool y
1481
- depends on X86_64 && !DEBUG_PAGEALLOC
1482
- ---help---
1506
+ depends on X86_64
1507
+ help
14831508 Certain kernel features effectively disable kernel
14841509 linear 1 GB mappings (even if the CPU otherwise
14851510 supports them), so don't confuse the user by printing
14861511 that we have them enabled.
14871512
1488
-config ARCH_HAS_MEM_ENCRYPT
1489
- def_bool y
1513
+config X86_CPA_STATISTICS
1514
+ bool "Enable statistic for Change Page Attribute"
1515
+ depends on DEBUG_FS
1516
+ help
1517
+ Expose statistics about the Change Page Attribute mechanism, which
1518
+ helps to determine the effectiveness of preserving large and huge
1519
+ page mappings when mapping protections are changed.
14901520
14911521 config AMD_MEM_ENCRYPT
14921522 bool "AMD Secure Memory Encryption (SME) support"
14931523 depends on X86_64 && CPU_SUP_AMD
1524
+ select DMA_COHERENT_POOL
14941525 select DYNAMIC_PHYSICAL_MASK
14951526 select ARCH_USE_MEMREMAP_PROT
1496
- ---help---
1527
+ select ARCH_HAS_FORCE_DMA_UNENCRYPTED
1528
+ select INSTRUCTION_DECODER
1529
+ select ARCH_HAS_CC_PLATFORM
1530
+ help
14971531 Say yes to enable support for the encryption of system memory.
14981532 This requires an AMD processor that supports Secure Memory
14991533 Encryption (SME).
....@@ -1501,7 +1535,7 @@
15011535 config AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT
15021536 bool "Activate AMD Secure Memory Encryption (SME) by default"
15031537 depends on AMD_MEM_ENCRYPT
1504
- ---help---
1538
+ help
15051539 Say yes to have system memory encrypted by default if running on
15061540 an AMD processor that supports Secure Memory Encryption (SME).
15071541
....@@ -1513,12 +1547,12 @@
15131547
15141548 # Common NUMA Features
15151549 config NUMA
1516
- bool "Numa Memory Allocation and Scheduler Support"
1550
+ bool "NUMA Memory Allocation and Scheduler Support"
15171551 depends on SMP
15181552 depends on X86_64 || (X86_32 && HIGHMEM64G && X86_BIGSMP)
15191553 default y if X86_BIGSMP
1520
- ---help---
1521
- Enable NUMA (Non Uniform Memory Access) support.
1554
+ help
1555
+ Enable NUMA (Non-Uniform Memory Access) support.
15221556
15231557 The kernel will try to allocate memory used by a CPU on the
15241558 local memory controller of the CPU and add some more
....@@ -1536,7 +1570,7 @@
15361570 def_bool y
15371571 prompt "Old style AMD Opteron NUMA detection"
15381572 depends on X86_64 && NUMA && PCI
1539
- ---help---
1573
+ help
15401574 Enable AMD NUMA node topology detection. You should say Y here if
15411575 you have a multi processor AMD system. This uses an old method to
15421576 read the NUMA configuration directly from the builtin Northbridge
....@@ -1548,22 +1582,13 @@
15481582 prompt "ACPI NUMA detection"
15491583 depends on X86_64 && NUMA && ACPI && PCI
15501584 select ACPI_NUMA
1551
- ---help---
1585
+ help
15521586 Enable ACPI SRAT based node topology detection.
1553
-
1554
-# Some NUMA nodes have memory ranges that span
1555
-# other nodes. Even though a pfn is valid and
1556
-# between a node's start and end pfns, it may not
1557
-# reside on that node. See memmap_init_zone()
1558
-# for details.
1559
-config NODES_SPAN_OTHER_NODES
1560
- def_bool y
1561
- depends on X86_64_ACPI_NUMA
15621587
15631588 config NUMA_EMU
15641589 bool "NUMA emulation"
15651590 depends on NUMA
1566
- ---help---
1591
+ help
15671592 Enable NUMA emulation. A flat machine will be split
15681593 into virtual nodes when booted with "numa=fake=N", where N is the
15691594 number of nodes. This is only useful for debugging.
....@@ -1575,25 +1600,13 @@
15751600 default "6" if X86_64
15761601 default "3"
15771602 depends on NEED_MULTIPLE_NODES
1578
- ---help---
1603
+ help
15791604 Specify the maximum number of NUMA Nodes available on the target
15801605 system. Increases memory reserved to accommodate various tables.
1581
-
1582
-config ARCH_HAVE_MEMORY_PRESENT
1583
- def_bool y
1584
- depends on X86_32 && DISCONTIGMEM
15851606
15861607 config ARCH_FLATMEM_ENABLE
15871608 def_bool y
15881609 depends on X86_32 && !NUMA
1589
-
1590
-config ARCH_DISCONTIGMEM_ENABLE
1591
- def_bool y
1592
- depends on NUMA && X86_32
1593
-
1594
-config ARCH_DISCONTIGMEM_DEFAULT
1595
- def_bool y
1596
- depends on NUMA && X86_32
15971610
15981611 config ARCH_SPARSEMEM_ENABLE
15991612 def_bool y
....@@ -1602,8 +1615,7 @@
16021615 select SPARSEMEM_VMEMMAP_ENABLE if X86_64
16031616
16041617 config ARCH_SPARSEMEM_DEFAULT
1605
- def_bool y
1606
- depends on X86_64
1618
+ def_bool X86_64 || (NUMA && X86_32)
16071619
16081620 config ARCH_SELECT_MEMORY_MODEL
16091621 def_bool y
....@@ -1614,7 +1626,7 @@
16141626 depends on X86_64 && MEMORY_HOTPLUG
16151627 help
16161628 This option enables a sysfs memory/probe interface for testing.
1617
- See Documentation/memory-hotplug.txt for more information.
1629
+ See Documentation/admin-guide/mm/memory-hotplug.rst for more information.
16181630 If you are unsure how to answer this question, answer N.
16191631
16201632 config ARCH_PROC_KCORE_TEXT
....@@ -1622,9 +1634,9 @@
16221634 depends on X86_64 && PROC_KCORE
16231635
16241636 config ILLEGAL_POINTER_VALUE
1625
- hex
1626
- default 0 if X86_32
1627
- default 0xdead000000000000 if X86_64
1637
+ hex
1638
+ default 0 if X86_32
1639
+ default 0xdead000000000000 if X86_64
16281640
16291641 config X86_PMEM_LEGACY_DEVICE
16301642 bool
....@@ -1634,6 +1646,7 @@
16341646 depends on PHYS_ADDR_T_64BIT
16351647 depends on BLK_DEV
16361648 select X86_PMEM_LEGACY_DEVICE
1649
+ select NUMA_KEEP_MEMINFO if NUMA
16371650 select LIBNVDIMM
16381651 help
16391652 Treat memory marked using the non-standard e820 type of 12 as used
....@@ -1646,7 +1659,7 @@
16461659 config HIGHPTE
16471660 bool "Allocate 3rd-level pagetables from highmem"
16481661 depends on HIGHMEM
1649
- ---help---
1662
+ help
16501663 The VM uses one page table entry for each page of physical memory.
16511664 For systems with a lot of RAM, this can be wasteful of precious
16521665 low memory. Setting this option will put user-space page table
....@@ -1654,7 +1667,7 @@
16541667
16551668 config X86_CHECK_BIOS_CORRUPTION
16561669 bool "Check for low memory corruption"
1657
- ---help---
1670
+ help
16581671 Periodically check for memory corruption in low memory, which
16591672 is suspected to be caused by BIOS. Even when enabled in the
16601673 configuration, it is disabled at runtime. Enable it by
....@@ -1678,7 +1691,7 @@
16781691 bool "Set the default setting of memory_corruption_check"
16791692 depends on X86_CHECK_BIOS_CORRUPTION
16801693 default y
1681
- ---help---
1694
+ help
16821695 Set whether the default state of memory_corruption_check is
16831696 on or off.
16841697
....@@ -1686,7 +1699,7 @@
16861699 int "Amount of low memory, in kilobytes, to reserve for the BIOS"
16871700 default 64
16881701 range 4 640
1689
- ---help---
1702
+ help
16901703 Specify the amount of low memory to reserve for the BIOS.
16911704
16921705 The first page contains BIOS data structures that the kernel
....@@ -1714,8 +1727,8 @@
17141727 config MATH_EMULATION
17151728 bool
17161729 depends on MODIFY_LDT_SYSCALL
1717
- prompt "Math emulation" if X86_32
1718
- ---help---
1730
+ prompt "Math emulation" if X86_32 && (M486SX || MELAN)
1731
+ help
17191732 Linux can emulate a math coprocessor (used for floating point
17201733 operations) if you don't have one. 486DX and Pentium processors have
17211734 a math coprocessor built in, 486SX and 386 do not, unless you added
....@@ -1741,7 +1754,7 @@
17411754 config MTRR
17421755 def_bool y
17431756 prompt "MTRR (Memory Type Range Register) support" if EXPERT
1744
- ---help---
1757
+ help
17451758 On Intel P6 family processors (Pentium Pro, Pentium II and later)
17461759 the Memory Type Range Registers (MTRRs) may be used to control
17471760 processor access to memory ranges. This is most useful if you have
....@@ -1771,13 +1784,13 @@
17711784 You can safely say Y even if your machine doesn't have MTRRs, you'll
17721785 just add about 9 KB to your kernel.
17731786
1774
- See <file:Documentation/x86/mtrr.txt> for more information.
1787
+ See <file:Documentation/x86/mtrr.rst> for more information.
17751788
17761789 config MTRR_SANITIZER
17771790 def_bool y
17781791 prompt "MTRR cleanup support"
17791792 depends on MTRR
1780
- ---help---
1793
+ help
17811794 Convert MTRR layout from continuous to discrete, so X drivers can
17821795 add writeback entries.
17831796
....@@ -1792,7 +1805,7 @@
17921805 range 0 1
17931806 default "0"
17941807 depends on MTRR_SANITIZER
1795
- ---help---
1808
+ help
17961809 Enable mtrr cleanup default value
17971810
17981811 config MTRR_SANITIZER_SPARE_REG_NR_DEFAULT
....@@ -1800,7 +1813,7 @@
18001813 range 0 7
18011814 default "1"
18021815 depends on MTRR_SANITIZER
1803
- ---help---
1816
+ help
18041817 mtrr cleanup spare entries default, it can be changed via
18051818 mtrr_spare_reg_nr=N on the kernel command line.
18061819
....@@ -1808,7 +1821,7 @@
18081821 def_bool y
18091822 prompt "x86 PAT support" if EXPERT
18101823 depends on MTRR
1811
- ---help---
1824
+ help
18121825 Use PAT attributes to setup page level cache control.
18131826
18141827 PATs are the modern equivalents of MTRRs and are much more
....@@ -1826,7 +1839,7 @@
18261839 config ARCH_RANDOM
18271840 def_bool y
18281841 prompt "x86 architectural random number generator" if EXPERT
1829
- ---help---
1842
+ help
18301843 Enable the x86 architectural RDRAND instruction
18311844 (Intel Bull Mountain technology) to generate random numbers.
18321845 If supported, this is a high bandwidth, cryptographically
....@@ -1835,7 +1848,7 @@
18351848 config X86_SMAP
18361849 def_bool y
18371850 prompt "Supervisor Mode Access Prevention" if EXPERT
1838
- ---help---
1851
+ help
18391852 Supervisor Mode Access Prevention (SMAP) is a security
18401853 feature in newer Intel processors. There is a small
18411854 performance cost if this enabled and turned on; there is
....@@ -1843,63 +1856,34 @@
18431856
18441857 If unsure, say Y.
18451858
1846
-config X86_INTEL_UMIP
1859
+config X86_UMIP
18471860 def_bool y
1848
- depends on CPU_SUP_INTEL
1849
- prompt "Intel User Mode Instruction Prevention" if EXPERT
1850
- ---help---
1851
- The User Mode Instruction Prevention (UMIP) is a security
1852
- feature in newer Intel processors. If enabled, a general
1853
- protection fault is issued if the SGDT, SLDT, SIDT, SMSW
1854
- or STR instructions are executed in user mode. These instructions
1855
- unnecessarily expose information about the hardware state.
1861
+ prompt "User Mode Instruction Prevention" if EXPERT
1862
+ help
1863
+ User Mode Instruction Prevention (UMIP) is a security feature in
1864
+ some x86 processors. If enabled, a general protection fault is
1865
+ issued if the SGDT, SLDT, SIDT, SMSW or STR instructions are
1866
+ executed in user mode. These instructions unnecessarily expose
1867
+ information about the hardware state.
18561868
18571869 The vast majority of applications do not use these instructions.
18581870 For the very few that do, software emulation is provided in
18591871 specific cases in protected and virtual-8086 modes. Emulated
18601872 results are dummy.
18611873
1862
-config X86_INTEL_MPX
1863
- prompt "Intel MPX (Memory Protection Extensions)"
1864
- def_bool n
1865
- # Note: only available in 64-bit mode due to VMA flags shortage
1866
- depends on CPU_SUP_INTEL && X86_64
1867
- select ARCH_USES_HIGH_VMA_FLAGS
1868
- ---help---
1869
- MPX provides hardware features that can be used in
1870
- conjunction with compiler-instrumented code to check
1871
- memory references. It is designed to detect buffer
1872
- overflow or underflow bugs.
1873
-
1874
- This option enables running applications which are
1875
- instrumented or otherwise use MPX. It does not use MPX
1876
- itself inside the kernel or to protect the kernel
1877
- against bad memory references.
1878
-
1879
- Enabling this option will make the kernel larger:
1880
- ~8k of kernel text and 36 bytes of data on a 64-bit
1881
- defconfig. It adds a long to the 'mm_struct' which
1882
- will increase the kernel memory overhead of each
1883
- process and adds some branches to paths used during
1884
- exec() and munmap().
1885
-
1886
- For details, see Documentation/x86/intel_mpx.txt
1887
-
1888
- If unsure, say N.
1889
-
18901874 config X86_INTEL_MEMORY_PROTECTION_KEYS
1891
- prompt "Intel Memory Protection Keys"
1875
+ prompt "Memory Protection Keys"
18921876 def_bool y
18931877 # Note: only available in 64-bit mode
1894
- depends on CPU_SUP_INTEL && X86_64
1878
+ depends on X86_64 && (CPU_SUP_INTEL || CPU_SUP_AMD)
18951879 select ARCH_USES_HIGH_VMA_FLAGS
18961880 select ARCH_HAS_PKEYS
1897
- ---help---
1881
+ help
18981882 Memory Protection Keys provides a mechanism for enforcing
18991883 page-based protections, but without requiring modification of the
19001884 page tables when an application changes protection domains.
19011885
1902
- For details, see Documentation/x86/protection-keys.txt
1886
+ For details, see Documentation/core-api/protection-keys.rst
19031887
19041888 If unsure, say y.
19051889
....@@ -1954,7 +1938,7 @@
19541938 select UCS2_STRING
19551939 select EFI_RUNTIME_WRAPPERS
19561940 select ARCH_USE_MEMREMAP_PROT
1957
- ---help---
1941
+ help
19581942 This enables the kernel to use EFI runtime services that are
19591943 available (such as the EFI variable services).
19601944
....@@ -1966,19 +1950,19 @@
19661950 platforms.
19671951
19681952 config EFI_STUB
1969
- bool "EFI stub support"
1970
- depends on EFI && !X86_USE_3DNOW
1971
- select RELOCATABLE
1972
- ---help---
1973
- This kernel feature allows a bzImage to be loaded directly
1953
+ bool "EFI stub support"
1954
+ depends on EFI && !X86_USE_3DNOW
1955
+ select RELOCATABLE
1956
+ help
1957
+ This kernel feature allows a bzImage to be loaded directly
19741958 by EFI firmware without the use of a bootloader.
19751959
1976
- See Documentation/efi-stub.txt for more information.
1960
+ See Documentation/admin-guide/efi-stub.rst for more information.
19771961
19781962 config EFI_MIXED
19791963 bool "EFI mixed-mode support"
19801964 depends on EFI_STUB && X86_64
1981
- ---help---
1965
+ help
19821966 Enabling this feature allows a 64-bit kernel to be booted
19831967 on a 32-bit firmware, provided that your CPU supports 64-bit
19841968 mode.
....@@ -1989,28 +1973,12 @@
19891973
19901974 If unsure, say N.
19911975
1992
-config SECCOMP
1993
- def_bool y
1994
- prompt "Enable seccomp to safely compute untrusted bytecode"
1995
- ---help---
1996
- This kernel feature is useful for number crunching applications
1997
- that may need to compute untrusted bytecode during their
1998
- execution. By using pipes or other transports made available to
1999
- the process as file descriptors supporting the read/write
2000
- syscalls, it's possible to isolate those applications in
2001
- their own address space using seccomp. Once seccomp is
2002
- enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
2003
- and the task is only allowed to execute a few safe syscalls
2004
- defined by each seccomp mode.
2005
-
2006
- If unsure, say Y. Only embedded should say N here.
2007
-
2008
-source kernel/Kconfig.hz
1976
+source "kernel/Kconfig.hz"
20091977
20101978 config KEXEC
20111979 bool "kexec system call"
20121980 select KEXEC_CORE
2013
- ---help---
1981
+ help
20141982 kexec is a system call that implements the ability to shutdown your
20151983 current kernel, and to start another kernel. It is like a reboot
20161984 but it is independent of the system firmware. And like a reboot
....@@ -2031,7 +1999,7 @@
20311999 depends on X86_64
20322000 depends on CRYPTO=y
20332001 depends on CRYPTO_SHA256=y
2034
- ---help---
2002
+ help
20352003 This is new version of kexec system call. This system call is
20362004 file based and takes file descriptors as system call argument
20372005 for kernel and initramfs as opposed to list of segments as
....@@ -2040,29 +2008,39 @@
20402008 config ARCH_HAS_KEXEC_PURGATORY
20412009 def_bool KEXEC_FILE
20422010
2043
-config KEXEC_VERIFY_SIG
2011
+config KEXEC_SIG
20442012 bool "Verify kernel signature during kexec_file_load() syscall"
20452013 depends on KEXEC_FILE
2046
- ---help---
2047
- This option makes kernel signature verification mandatory for
2048
- the kexec_file_load() syscall.
2014
+ help
20492015
2050
- In addition to that option, you need to enable signature
2016
+ This option makes the kexec_file_load() syscall check for a valid
2017
+ signature of the kernel image. The image can still be loaded without
2018
+ a valid signature unless you also enable KEXEC_SIG_FORCE, though if
2019
+ there's a signature that we can check, then it must be valid.
2020
+
2021
+ In addition to this option, you need to enable signature
20512022 verification for the corresponding kernel image type being
20522023 loaded in order for this to work.
20532024
2025
+config KEXEC_SIG_FORCE
2026
+ bool "Require a valid signature in kexec_file_load() syscall"
2027
+ depends on KEXEC_SIG
2028
+ help
2029
+ This option makes kernel signature verification mandatory for
2030
+ the kexec_file_load() syscall.
2031
+
20542032 config KEXEC_BZIMAGE_VERIFY_SIG
20552033 bool "Enable bzImage signature verification support"
2056
- depends on KEXEC_VERIFY_SIG
2034
+ depends on KEXEC_SIG
20572035 depends on SIGNED_PE_FILE_VERIFICATION
20582036 select SYSTEM_TRUSTED_KEYRING
2059
- ---help---
2037
+ help
20602038 Enable bzImage signature verification support.
20612039
20622040 config CRASH_DUMP
20632041 bool "kernel crash dumps"
20642042 depends on X86_64 || (X86_32 && HIGHMEM)
2065
- ---help---
2043
+ help
20662044 Generate crash dump after being started by kexec.
20672045 This should be normally only set in special crash dump kernels
20682046 which are loaded in the main kernel with kexec-tools into
....@@ -2071,19 +2049,19 @@
20712049 to a memory address not used by the main kernel or BIOS using
20722050 PHYSICAL_START, or it must be built as a relocatable image
20732051 (CONFIG_RELOCATABLE=y).
2074
- For more details see Documentation/kdump/kdump.txt
2052
+ For more details see Documentation/admin-guide/kdump/kdump.rst
20752053
20762054 config KEXEC_JUMP
20772055 bool "kexec jump"
20782056 depends on KEXEC && HIBERNATION
2079
- ---help---
2057
+ help
20802058 Jump between original kernel and kexeced kernel and invoke
20812059 code in physical address mode via KEXEC
20822060
20832061 config PHYSICAL_START
20842062 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
20852063 default "0x1000000"
2086
- ---help---
2064
+ help
20872065 This gives the physical address where the kernel is loaded.
20882066
20892067 If kernel is a not relocatable (CONFIG_RELOCATABLE=n) then
....@@ -2108,7 +2086,7 @@
21082086 the reserved region. In other words, it can be set based on
21092087 the "X" value as specified in the "crashkernel=YM@XM"
21102088 command line boot parameter passed to the panic-ed
2111
- kernel. Please take a look at Documentation/kdump/kdump.txt
2089
+ kernel. Please take a look at Documentation/admin-guide/kdump/kdump.rst
21122090 for more details about crash dumps.
21132091
21142092 Usage of bzImage for capturing the crash dump is recommended as
....@@ -2124,7 +2102,7 @@
21242102 config RELOCATABLE
21252103 bool "Build a relocatable kernel"
21262104 default y
2127
- ---help---
2105
+ help
21282106 This builds a kernel image that retains relocation information
21292107 so it can be loaded someplace besides the default 1MB.
21302108 The relocations tend to make the kernel binary about 10% larger,
....@@ -2142,7 +2120,7 @@
21422120 bool "Randomize the address of the kernel image (KASLR)"
21432121 depends on RELOCATABLE
21442122 default y
2145
- ---help---
2123
+ help
21462124 In support of Kernel Address Space Layout Randomization (KASLR),
21472125 this randomizes the physical address at which the kernel image
21482126 is decompressed and the virtual address where the kernel
....@@ -2183,7 +2161,7 @@
21832161 default "0x200000"
21842162 range 0x2000 0x1000000 if X86_32
21852163 range 0x200000 0x1000000 if X86_64
2186
- ---help---
2164
+ help
21872165 This value puts the alignment restrictions on physical address
21882166 where kernel is loaded and run from. Kernel is compiled for an
21892167 address which meets above alignment restriction.
....@@ -2207,7 +2185,7 @@
22072185
22082186 config DYNAMIC_MEMORY_LAYOUT
22092187 bool
2210
- ---help---
2188
+ help
22112189 This option makes base addresses of vmalloc and vmemmap as well as
22122190 __PAGE_OFFSET movable during boot.
22132191
....@@ -2217,7 +2195,7 @@
22172195 depends on RANDOMIZE_BASE
22182196 select DYNAMIC_MEMORY_LAYOUT
22192197 default RANDOMIZE_BASE
2220
- ---help---
2198
+ help
22212199 Randomizes the base virtual address of kernel memory sections
22222200 (physical memory mapping, vmalloc & vmemmap). This security feature
22232201 makes exploits relying on predictable memory locations less reliable.
....@@ -2236,7 +2214,7 @@
22362214 default "0x0"
22372215 range 0x1 0x40 if MEMORY_HOTPLUG
22382216 range 0x0 0x40
2239
- ---help---
2217
+ help
22402218 Define the padding in terabytes added to the existing physical
22412219 memory size during kernel memory randomization. It is useful
22422220 for memory hotplug support but reduces the entropy available for
....@@ -2250,9 +2228,8 @@
22502228
22512229 config BOOTPARAM_HOTPLUG_CPU0
22522230 bool "Set default setting of cpu0_hotpluggable"
2253
- default n
22542231 depends on HOTPLUG_CPU
2255
- ---help---
2232
+ help
22562233 Set whether default state of cpu0_hotpluggable is on or off.
22572234
22582235 Say Y here to enable CPU0 hotplug by default. If this switch
....@@ -2281,7 +2258,7 @@
22812258 def_bool n
22822259 prompt "Debug CPU0 hotplug"
22832260 depends on HOTPLUG_CPU
2284
- ---help---
2261
+ help
22852262 Enabling this option offlines CPU0 (if CPU0 can be offlined) as
22862263 soon as possible and boots up userspace with CPU0 offlined. User
22872264 can online CPU0 back after boot time.
....@@ -2296,7 +2273,7 @@
22962273 def_bool n
22972274 prompt "Disable the 32-bit vDSO (needed for glibc 2.3.3)"
22982275 depends on COMPAT_32
2299
- ---help---
2276
+ help
23002277 Certain buggy versions of glibc will crash if they are
23012278 presented with a 32-bit vDSO that is not mapped at the address
23022279 indicated in its segment table.
....@@ -2320,7 +2297,7 @@
23202297 choice
23212298 prompt "vsyscall table for legacy applications"
23222299 depends on X86_64
2323
- default LEGACY_VSYSCALL_EMULATE
2300
+ default LEGACY_VSYSCALL_XONLY
23242301 help
23252302 Legacy user code that does not know how to find the vDSO expects
23262303 to be able to issue three syscalls by calling fixed addresses in
....@@ -2328,23 +2305,38 @@
23282305 it can be used to assist security vulnerability exploitation.
23292306
23302307 This setting can be changed at boot time via the kernel command
2331
- line parameter vsyscall=[emulate|none].
2308
+ line parameter vsyscall=[emulate|xonly|none].
23322309
23332310 On a system with recent enough glibc (2.14 or newer) and no
23342311 static binaries, you can say None without a performance penalty
23352312 to improve security.
23362313
2337
- If unsure, select "Emulate".
2314
+ If unsure, select "Emulate execution only".
23382315
23392316 config LEGACY_VSYSCALL_EMULATE
2340
- bool "Emulate"
2317
+ bool "Full emulation"
23412318 help
2342
- The kernel traps and emulates calls into the fixed
2343
- vsyscall address mapping. This makes the mapping
2344
- non-executable, but it still contains known contents,
2345
- which could be used in certain rare security vulnerability
2346
- exploits. This configuration is recommended when userspace
2347
- still uses the vsyscall area.
2319
+ The kernel traps and emulates calls into the fixed vsyscall
2320
+ address mapping. This makes the mapping non-executable, but
2321
+ it still contains readable known contents, which could be
2322
+ used in certain rare security vulnerability exploits. This
2323
+ configuration is recommended when using legacy userspace
2324
+ that still uses vsyscalls along with legacy binary
2325
+ instrumentation tools that require code to be readable.
2326
+
2327
+ An example of this type of legacy userspace is running
2328
+ Pin on an old binary that still uses vsyscalls.
2329
+
2330
+ config LEGACY_VSYSCALL_XONLY
2331
+ bool "Emulate execution only"
2332
+ help
2333
+ The kernel traps and emulates calls into the fixed vsyscall
2334
+ address mapping and does not allow reads. This
2335
+ configuration is recommended when userspace might use the
2336
+ legacy vsyscall area but support for legacy binary
2337
+ instrumentation of legacy code is not needed. It mitigates
2338
+ certain uses of the vsyscall area as an ASLR-bypassing
2339
+ buffer.
23482340
23492341 config LEGACY_VSYSCALL_NONE
23502342 bool "None"
....@@ -2359,7 +2351,7 @@
23592351
23602352 config CMDLINE_BOOL
23612353 bool "Built-in kernel command line"
2362
- ---help---
2354
+ help
23632355 Allow for specifying boot arguments to the kernel at
23642356 build time. On some systems (e.g. embedded ones), it is
23652357 necessary or convenient to provide some or all of the
....@@ -2377,7 +2369,7 @@
23772369 string "Built-in kernel command string"
23782370 depends on CMDLINE_BOOL
23792371 default ""
2380
- ---help---
2372
+ help
23812373 Enter arguments here that should be compiled into the kernel
23822374 image and used at boot time. If the boot loader provides a
23832375 command line at boot time, it is appended to this string to
....@@ -2392,8 +2384,8 @@
23922384
23932385 config CMDLINE_OVERRIDE
23942386 bool "Built-in command line overrides boot loader arguments"
2395
- depends on CMDLINE_BOOL
2396
- ---help---
2387
+ depends on CMDLINE_BOOL && CMDLINE != ""
2388
+ help
23972389 Set this option to 'Y' to have the kernel ignore the boot loader
23982390 command line, and use ONLY the built-in command line.
23992391
....@@ -2403,7 +2395,7 @@
24032395 config MODIFY_LDT_SYSCALL
24042396 bool "Enable the LDT (local descriptor table)" if EXPERT
24052397 default y
2406
- ---help---
2398
+ help
24072399 Linux can allow user programs to install a per-process x86
24082400 Local Descriptor Table (LDT) using the modify_ldt(2) system
24092401 call. This is required to run 16-bit or segmented code such as
....@@ -2419,6 +2411,114 @@
24192411 source "kernel/livepatch/Kconfig"
24202412
24212413 endmenu
2414
+
2415
+config CC_HAS_SLS
2416
+ def_bool $(cc-option,-mharden-sls=all)
2417
+
2418
+config CC_HAS_RETURN_THUNK
2419
+ def_bool $(cc-option,-mfunction-return=thunk-extern)
2420
+
2421
+menuconfig SPECULATION_MITIGATIONS
2422
+ bool "Mitigations for speculative execution vulnerabilities"
2423
+ default y
2424
+ help
2425
+ Say Y here to enable options which enable mitigations for
2426
+ speculative execution hardware vulnerabilities.
2427
+
2428
+ If you say N, all mitigations will be disabled. You really
2429
+ should know what you are doing to say so.
2430
+
2431
+if SPECULATION_MITIGATIONS
2432
+
2433
+config PAGE_TABLE_ISOLATION
2434
+ bool "Remove the kernel mapping in user mode"
2435
+ default y
2436
+ depends on (X86_64 || X86_PAE)
2437
+ help
2438
+ This feature reduces the number of hardware side channels by
2439
+ ensuring that the majority of kernel addresses are not mapped
2440
+ into userspace.
2441
+
2442
+ See Documentation/x86/pti.rst for more details.
2443
+
2444
+config RETPOLINE
2445
+ bool "Avoid speculative indirect branches in kernel"
2446
+ default y
2447
+ help
2448
+ Compile kernel with the retpoline compiler options to guard against
2449
+ kernel-to-user data leaks by avoiding speculative indirect
2450
+ branches. Requires a compiler with -mindirect-branch=thunk-extern
2451
+ support for full protection. The kernel may run slower.
2452
+
2453
+config RETHUNK
2454
+ bool "Enable return-thunks"
2455
+ depends on RETPOLINE && CC_HAS_RETURN_THUNK
2456
+ default y if X86_64
2457
+ help
2458
+ Compile the kernel with the return-thunks compiler option to guard
2459
+ against kernel-to-user data leaks by avoiding return speculation.
2460
+ Requires a compiler with -mfunction-return=thunk-extern
2461
+ support for full protection. The kernel may run slower.
2462
+
2463
+config CPU_UNRET_ENTRY
2464
+ bool "Enable UNRET on kernel entry"
2465
+ depends on CPU_SUP_AMD && RETHUNK && X86_64
2466
+ default y
2467
+ help
2468
+ Compile the kernel with support for the retbleed=unret mitigation.
2469
+
2470
+config CPU_IBPB_ENTRY
2471
+ bool "Enable IBPB on kernel entry"
2472
+ depends on CPU_SUP_AMD && X86_64
2473
+ default y
2474
+ help
2475
+ Compile the kernel with support for the retbleed=ibpb mitigation.
2476
+
2477
+config CPU_IBRS_ENTRY
2478
+ bool "Enable IBRS on kernel entry"
2479
+ depends on CPU_SUP_INTEL && X86_64
2480
+ default y
2481
+ help
2482
+ Compile the kernel with support for the spectre_v2=ibrs mitigation.
2483
+ This mitigates both spectre_v2 and retbleed at great cost to
2484
+ performance.
2485
+
2486
+config CPU_SRSO
2487
+ bool "Mitigate speculative RAS overflow on AMD"
2488
+ depends on CPU_SUP_AMD && X86_64 && RETHUNK
2489
+ default y
2490
+ help
2491
+ Enable the SRSO mitigation needed on AMD Zen1-4 machines.
2492
+
2493
+config SLS
2494
+ bool "Mitigate Straight-Line-Speculation"
2495
+ depends on CC_HAS_SLS && X86_64
2496
+ default n
2497
+ help
2498
+ Compile the kernel with straight-line-speculation options to guard
2499
+ against straight line speculation. The kernel image might be slightly
2500
+ larger.
2501
+
2502
+config GDS_FORCE_MITIGATION
2503
+ bool "Force GDS Mitigation"
2504
+ depends on CPU_SUP_INTEL
2505
+ default n
2506
+ help
2507
+ Gather Data Sampling (GDS) is a hardware vulnerability which allows
2508
+ unprivileged speculative access to data which was previously stored in
2509
+ vector registers.
2510
+
2511
+ This option is equivalent to setting gather_data_sampling=force on the
2512
+ command line. The microcode mitigation is used if present, otherwise
2513
+ AVX is disabled as a mitigation. On affected systems that are missing
2514
+ the microcode any userspace code that unconditionally uses AVX will
2515
+ break with this option set.
2516
+
2517
+ Setting this option on systems not vulnerable to GDS has no effect.
2518
+
2519
+ If in doubt, say N.
2520
+
2521
+endif
24222522
24232523 config ARCH_HAS_ADD_PAGES
24242524 def_bool y
....@@ -2452,7 +2552,7 @@
24522552
24532553 config ARCH_HIBERNATION_HEADER
24542554 def_bool y
2455
- depends on X86_64 && HIBERNATION
2555
+ depends on HIBERNATION
24562556
24572557 source "kernel/power/Kconfig"
24582558
....@@ -2467,7 +2567,7 @@
24672567 menuconfig APM
24682568 tristate "APM (Advanced Power Management) BIOS support"
24692569 depends on X86_32 && PM_SLEEP
2470
- ---help---
2570
+ help
24712571 APM is a BIOS specification for saving power using several different
24722572 techniques. This is mostly useful for battery powered laptops with
24732573 APM compliant BIOSes. If you say Y here, the system time will be
....@@ -2482,7 +2582,7 @@
24822582 machines with more than one CPU.
24832583
24842584 In order to use APM, you will need supporting software. For location
2485
- and more information, read <file:Documentation/power/apm-acpi.txt>
2585
+ and more information, read <file:Documentation/power/apm-acpi.rst>
24862586 and the Battery Powered Linux mini-HOWTO, available from
24872587 <http://www.tldp.org/docs.html#howto>.
24882588
....@@ -2527,14 +2627,14 @@
25272627
25282628 config APM_IGNORE_USER_SUSPEND
25292629 bool "Ignore USER SUSPEND"
2530
- ---help---
2630
+ help
25312631 This option will ignore USER SUSPEND requests. On machines with a
25322632 compliant APM BIOS, you want to say N. However, on the NEC Versa M
25332633 series notebooks, it is necessary to say Y because of a BIOS bug.
25342634
25352635 config APM_DO_ENABLE
25362636 bool "Enable PM at boot time"
2537
- ---help---
2637
+ help
25382638 Enable APM features at boot time. From page 36 of the APM BIOS
25392639 specification: "When disabled, the APM BIOS does not automatically
25402640 power manage devices, enter the Standby State, enter the Suspend
....@@ -2552,7 +2652,7 @@
25522652 config APM_CPU_IDLE
25532653 depends on CPU_IDLE
25542654 bool "Make CPU Idle calls when idle"
2555
- ---help---
2655
+ help
25562656 Enable calls to APM CPU Idle/CPU Busy inside the kernel's idle loop.
25572657 On some machines, this can activate improved power savings, such as
25582658 a slowed CPU clock rate, when the machine is idle. These idle calls
....@@ -2563,7 +2663,7 @@
25632663
25642664 config APM_DISPLAY_BLANK
25652665 bool "Enable console blanking using APM"
2566
- ---help---
2666
+ help
25672667 Enable console blanking using the APM. Some laptops can use this to
25682668 turn off the LCD backlight when the screen blanker of the Linux
25692669 virtual console blanks the screen. Note that this is only used by
....@@ -2576,7 +2676,7 @@
25762676
25772677 config APM_ALLOW_INTS
25782678 bool "Allow interrupts during APM BIOS calls"
2579
- ---help---
2679
+ help
25802680 Normally we disable external interrupts while we are making calls to
25812681 the APM BIOS as a measure to lessen the effects of a badly behaving
25822682 BIOS implementation. The BIOS should reenable interrupts if it
....@@ -2597,20 +2697,11 @@
25972697
25982698 menu "Bus options (PCI etc.)"
25992699
2600
-config PCI
2601
- bool "PCI support"
2602
- default y
2603
- ---help---
2604
- Find out whether you have a PCI motherboard. PCI is the name of a
2605
- bus system, i.e. the way the CPU talks to the other stuff inside
2606
- your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
2607
- VESA. If you have PCI, say Y, otherwise N.
2608
-
26092700 choice
26102701 prompt "PCI access mode"
26112702 depends on X86_32 && PCI
26122703 default PCI_GOANY
2613
- ---help---
2704
+ help
26142705 On PCI systems, the BIOS can be used to detect the PCI devices and
26152706 determine their configuration. However, some old PCI motherboards
26162707 have BIOS bugs and may crash if this is done. Also, some embedded
....@@ -2667,10 +2758,6 @@
26672758 depends on PCI && XEN
26682759 select SWIOTLB_XEN
26692760
2670
-config PCI_DOMAINS
2671
- def_bool y
2672
- depends on PCI
2673
-
26742761 config MMCONF_FAM10H
26752762 def_bool y
26762763 depends on X86_64 && PCI_MMCONFIG && ACPI
....@@ -2687,8 +2774,6 @@
26872774 is known to be incomplete.
26882775
26892776 You should say N unless you know you need this.
2690
-
2691
-source "drivers/pci/Kconfig"
26922777
26932778 config ISA_BUS
26942779 bool "ISA bus support on modern systems" if EXPERT
....@@ -2713,34 +2798,16 @@
27132798
27142799 config ISA
27152800 bool "ISA support"
2716
- ---help---
2801
+ help
27172802 Find out whether you have ISA slots on your motherboard. ISA is the
27182803 name of a bus system, i.e. the way the CPU talks to the other stuff
27192804 inside your box. Other bus systems are PCI, EISA, MicroChannel
27202805 (MCA) or VESA. ISA is an older system, now being displaced by PCI;
27212806 newer boards don't support it. If you have ISA, say Y, otherwise N.
27222807
2723
-config EISA
2724
- bool "EISA support"
2725
- depends on ISA
2726
- ---help---
2727
- The Extended Industry Standard Architecture (EISA) bus was
2728
- developed as an open alternative to the IBM MicroChannel bus.
2729
-
2730
- The EISA bus provided some of the features of the IBM MicroChannel
2731
- bus while maintaining backward compatibility with cards made for
2732
- the older ISA bus. The EISA bus saw limited use between 1988 and
2733
- 1995 when it was made obsolete by the PCI bus.
2734
-
2735
- Say Y here if you are building a kernel for an EISA-based machine.
2736
-
2737
- Otherwise, say N.
2738
-
2739
-source "drivers/eisa/Kconfig"
2740
-
27412808 config SCx200
27422809 tristate "NatSemi SCx200 support"
2743
- ---help---
2810
+ help
27442811 This provides basic support for National Semiconductor's
27452812 (now AMD's) Geode processors. The driver probes for the
27462813 PCI-IDs of several on-chip devices, so its a good dependency
....@@ -2752,7 +2819,7 @@
27522819 tristate "NatSemi SCx200 27MHz High-Resolution Timer Support"
27532820 depends on SCx200
27542821 default y
2755
- ---help---
2822
+ help
27562823 This driver provides a clocksource built upon the on-chip
27572824 27MHz high-resolution timer. Its also a workaround for
27582825 NSC Geode SC-1100's buggy TSC, which loses time when the
....@@ -2766,20 +2833,21 @@
27662833 select OF
27672834 select OF_PROMTREE
27682835 select IRQ_DOMAIN
2769
- ---help---
2836
+ select OLPC_EC
2837
+ help
27702838 Add support for detecting the unique features of the OLPC
27712839 XO hardware.
27722840
27732841 config OLPC_XO1_PM
27742842 bool "OLPC XO-1 Power Management"
27752843 depends on OLPC && MFD_CS5535=y && PM_SLEEP
2776
- ---help---
2844
+ help
27772845 Add support for poweroff and suspend of the OLPC XO-1 laptop.
27782846
27792847 config OLPC_XO1_RTC
27802848 bool "OLPC XO-1 Real Time Clock"
27812849 depends on OLPC_XO1_PM && RTC_DRV_CMOS
2782
- ---help---
2850
+ help
27832851 Add support for the XO-1 real time clock, which can be used as a
27842852 programmable wakeup source.
27852853
....@@ -2788,7 +2856,7 @@
27882856 depends on OLPC && OLPC_XO1_PM && GPIO_CS5535=y
27892857 depends on INPUT=y
27902858 select POWER_SUPPLY
2791
- ---help---
2859
+ help
27922860 Add support for SCI-based features of the OLPC XO-1 laptop:
27932861 - EC-driven system wakeups
27942862 - Power button
....@@ -2801,7 +2869,7 @@
28012869 bool "OLPC XO-1.5 SCI extras"
28022870 depends on OLPC && ACPI
28032871 select POWER_SUPPLY
2804
- ---help---
2872
+ help
28052873 Add support for SCI-based features of the OLPC XO-1.5 laptop:
28062874 - EC-driven system wakeups
28072875 - AC adapter status updates
....@@ -2810,7 +2878,7 @@
28102878 config ALIX
28112879 bool "PCEngines ALIX System Support (LED setup)"
28122880 select GPIOLIB
2813
- ---help---
2881
+ help
28142882 This option enables system support for the PCEngines ALIX.
28152883 At present this just sets up LEDs for GPIO control on
28162884 ALIX2/3/6 boards. However, other system specific setup should
....@@ -2824,14 +2892,14 @@
28242892 config NET5501
28252893 bool "Soekris Engineering net5501 System Support (LEDS, GPIO, etc)"
28262894 select GPIOLIB
2827
- ---help---
2895
+ help
28282896 This option enables system support for the Soekris Engineering net5501.
28292897
28302898 config GEOS
28312899 bool "Traverse Technologies GEOS System Support (LEDS, GPIO, etc)"
28322900 select GPIOLIB
28332901 depends on DMI
2834
- ---help---
2902
+ help
28352903 This option enables system support for the Traverse Technologies GEOS.
28362904
28372905 config TS5500
....@@ -2840,7 +2908,7 @@
28402908 select CHECK_SIGNATURE
28412909 select NEW_LEDS
28422910 select LEDS_CLASS
2843
- ---help---
2911
+ help
28442912 This option enables system support for the Technologic Systems TS-5500.
28452913
28462914 endif # X86_32
....@@ -2848,18 +2916,6 @@
28482916 config AMD_NB
28492917 def_bool y
28502918 depends on CPU_SUP_AMD && PCI
2851
-
2852
-source "drivers/pcmcia/Kconfig"
2853
-
2854
-config RAPIDIO
2855
- tristate "RapidIO support"
2856
- depends on PCI
2857
- default n
2858
- help
2859
- If enabled this option will include drivers and the core
2860
- infrastructure code to support RapidIO interconnect devices.
2861
-
2862
-source "drivers/rapidio/Kconfig"
28632919
28642920 config X86_SYSFB
28652921 bool "Mark VGA/VBE/EFI FB as generic system framebuffer"
....@@ -2899,7 +2955,7 @@
28992955 select BINFMT_ELF
29002956 select COMPAT_BINFMT_ELF
29012957 select COMPAT_OLD_SIGACTION
2902
- ---help---
2958
+ help
29032959 Include code to run legacy 32-bit programs under a
29042960 64-bit kernel. You should likely turn this on, unless you're
29052961 100% sure that you don't have any 32-bit programs left.
....@@ -2907,13 +2963,19 @@
29072963 config IA32_AOUT
29082964 tristate "IA32 a.out support"
29092965 depends on IA32_EMULATION
2910
- ---help---
2966
+ depends on BROKEN
2967
+ help
29112968 Support old a.out binaries in the 32bit emulation.
29122969
29132970 config X86_X32
29142971 bool "x32 ABI for 64-bit mode"
29152972 depends on X86_64
2916
- ---help---
2973
+ # llvm-objcopy does not convert x86_64 .note.gnu.property or
2974
+ # compressed debug sections to x86_x32 properly:
2975
+ # https://github.com/ClangBuiltLinux/linux/issues/514
2976
+ # https://github.com/ClangBuiltLinux/linux/issues/1141
2977
+ depends on $(success,$(OBJCOPY) --version | head -n1 | grep -qv llvm)
2978
+ help
29172979 Include code to run binaries for the x32 native 32-bit ABI
29182980 for 64-bit processors. An x32 process gets access to the
29192981 full 64-bit register file and wide data path while leaving
....@@ -2949,17 +3011,8 @@
29493011 def_bool y
29503012 depends on X86_32
29513013
2952
-config X86_DEV_DMA_OPS
2953
- bool
2954
- depends on X86_64 || STA2X11
2955
-
2956
-config X86_DMA_REMAP
2957
- bool
2958
- depends on STA2X11
2959
-
2960
-config HAVE_GENERIC_GUP
2961
- def_bool y
2962
-
29633014 source "drivers/firmware/Kconfig"
29643015
29653016 source "arch/x86/kvm/Kconfig"
3017
+
3018
+source "arch/x86/Kconfig.assembler"