hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
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,37 @@
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
18
+ select KMAP_LOCAL
1919 select MODULES_USE_ELF_REL
2020 select OLD_SIGACTION
2121 select GENERIC_VDSO_32
22
+ select ARCH_SPLIT_ARG64
2223
2324 config X86_64
2425 def_bool y
2526 depends on 64BIT
2627 # Options that are inherently 64-bit kernel only:
27
- select ARCH_HAS_GIGANTIC_PAGE if (MEMORY_ISOLATION && COMPACTION) || CMA
28
- select ARCH_SUPPORTS_INT128
28
+ select ARCH_HAS_GIGANTIC_PAGE
29
+ select ARCH_SUPPORTS_INT128 if CC_HAS_INT128
30
+ select ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT
2931 select ARCH_USE_CMPXCHG_LOCKREF
3032 select HAVE_ARCH_SOFT_DIRTY
3133 select MODULES_USE_ELF_RELA
3234 select NEED_DMA_MAP_STATE
3335 select SWIOTLB
34
- select X86_DEV_DMA_OPS
35
- select ARCH_HAS_SYSCALL_WRAPPER
3636
37
+config FORCE_DYNAMIC_FTRACE
38
+ def_bool y
39
+ depends on X86_32
40
+ depends on FUNCTION_TRACER
41
+ select DYNAMIC_FTRACE
42
+ help
43
+ We keep the static function tracing (!DYNAMIC_FTRACE) around
44
+ in order to test the non static function tracing in the
45
+ generic code, as other architectures still use it. But we
46
+ only need to keep it around for x86_64. No need to keep it
47
+ for x86_32. For x86_32, force DYNAMIC_FTRACE.
3748 #
3849 # Arch settings
3950 #
....@@ -47,50 +58,60 @@
4758 #
4859 select ACPI_LEGACY_TABLES_LOOKUP if ACPI
4960 select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI
50
- select ARCH_CLOCKSOURCE_DATA
51
- select ARCH_DISCARD_MEMBLOCK
61
+ select ARCH_32BIT_OFF_T if X86_32
62
+ select ARCH_CLOCKSOURCE_INIT
5263 select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
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,15 +215,19 @@
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
185221 select HAVE_PREEMPT_LAZY
186
- select HAVE_RCU_TABLE_FREE if PARAVIRT
187
- select HAVE_RCU_TABLE_INVALIDATE if HAVE_RCU_TABLE_FREE
222
+ select MMU_GATHER_RCU_TABLE_FREE if PARAVIRT
223
+ select HAVE_POSIX_CPU_TIMERS_TASK_WORK
188224 select HAVE_REGS_AND_STACK_ACCESS_API
189225 select HAVE_RELIABLE_STACKTRACE if X86_64 && (UNWINDER_FRAME_POINTER || UNWINDER_ORC) && STACK_VALIDATION
226
+ select HAVE_FUNCTION_ARG_ACCESS_API
190227 select HAVE_STACKPROTECTOR if CC_HAS_SANE_STACKPROTECTOR
191
- select HAVE_STACK_VALIDATION if X86_64 && !LTO_CLANG
228
+ select HAVE_STACK_VALIDATION if X86_64
229
+ select HAVE_STATIC_CALL
230
+ select HAVE_STATIC_CALL_INLINE if HAVE_STACK_VALIDATION
192231 select HAVE_RSEQ
193232 select HAVE_SYSCALL_TRACEPOINTS
194233 select HAVE_UNSTABLE_SCHED_CLOCK
....@@ -197,17 +236,22 @@
197236 select HOTPLUG_SMT if SMP
198237 select IRQ_FORCED_THREADING
199238 select NEED_SG_DMA_LENGTH
200
- select PCI_LOCKLESS_CONFIG
239
+ select PCI_DOMAINS if PCI
240
+ select PCI_LOCKLESS_CONFIG if PCI
201241 select PERF_EVENTS
202242 select RTC_LIB
203243 select RTC_MC146818_LIB
204244 select SPARSE_IRQ
205245 select SRCU
246
+ select STACK_VALIDATION if HAVE_STACK_VALIDATION && (HAVE_STATIC_CALL_INLINE || RETPOLINE)
206247 select SYSCTL_EXCEPTION_TRACE
207248 select THREAD_INFO_IN_TASK
208249 select USER_STACKTRACE_SUPPORT
209250 select VIRT_TO_BUS
251
+ select HAVE_ARCH_KCSAN if X86_64
210252 select X86_FEATURE_NAMES if PROC_FS
253
+ select PROC_PID_ARCH_STATUS if PROC_FS
254
+ imply IMA_SECURE_AND_OR_TRUSTED_BOOT if EFI
211255
212256 config INSTRUCTION_DECODER
213257 def_bool y
....@@ -217,11 +261,6 @@
217261 string
218262 default "elf32-i386" if X86_32
219263 default "elf64-x86-64" if X86_64
220
-
221
-config ARCH_DEFCONFIG
222
- string
223
- default "arch/x86/configs/i386_defconfig" if X86_32
224
- default "arch/x86/configs/x86_64_defconfig" if X86_64
225264
226265 config LOCKDEP_SUPPORT
227266 def_bool y
....@@ -261,18 +300,9 @@
261300 config GENERIC_BUG_RELATIVE_POINTERS
262301 bool
263302
264
-config GENERIC_HWEIGHT
265
- def_bool y
266
-
267303 config ARCH_MAY_HAVE_PC_FDC
268304 def_bool y
269305 depends on ISA_DMA_API
270
-
271
-config RWSEM_GENERIC_SPINLOCK
272
- def_bool PREEMPT_RT_FULL
273
-
274
-config RWSEM_XCHGADD_ALGORITHM
275
- def_bool !RWSEM_GENERIC_SPINLOCK && !PREEMPT_RT_FULL
276306
277307 config GENERIC_CALIBRATE_DELAY
278308 def_bool y
....@@ -301,9 +331,6 @@
301331 config ARCH_SUSPEND_POSSIBLE
302332 def_bool y
303333
304
-config ARCH_WANT_HUGE_PMD_SHARE
305
- def_bool y
306
-
307334 config ARCH_WANT_GENERAL_HUGETLB
308335 def_bool y
309336
....@@ -312,9 +339,6 @@
312339
313340 config AUDIT_ARCH
314341 def_bool y if X86_64
315
-
316
-config ARCH_SUPPORTS_OPTIMIZED_INLINING
317
- def_bool y
318342
319343 config ARCH_SUPPORTS_DEBUG_PAGEALLOC
320344 def_bool y
....@@ -378,7 +402,7 @@
378402
379403 config SMP
380404 bool "Symmetric multi-processing support"
381
- ---help---
405
+ help
382406 This enables support for systems with more than one CPU. If you have
383407 a system with only one CPU, say N. If you have a system with more
384408 than one CPU, say Y.
....@@ -398,8 +422,8 @@
398422 Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
399423 Management" code will be disabled if you say Y here.
400424
401
- See also <file:Documentation/x86/i386/IO-APIC.txt>,
402
- <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO available at
425
+ See also <file:Documentation/x86/i386/IO-APIC.rst>,
426
+ <file:Documentation/admin-guide/lockup-watchdogs.rst> and the SMP-HOWTO available at
403427 <http://www.tldp.org/docs.html#howto>.
404428
405429 If you don't know what to do here, say N.
....@@ -407,7 +431,7 @@
407431 config X86_FEATURE_NAMES
408432 bool "Processor feature human-readable names" if EMBEDDED
409433 default y
410
- ---help---
434
+ help
411435 This option compiles in a table of x86 feature bits and corresponding
412436 names. This is required to support /proc/cpuinfo and a few kernel
413437 messages. You can disable this to save space, at the expense of
....@@ -418,7 +442,7 @@
418442 config X86_X2APIC
419443 bool "Support x2apic"
420444 depends on X86_LOCAL_APIC && X86_64 && (IRQ_REMAP || HYPERVISOR_GUEST)
421
- ---help---
445
+ help
422446 This enables x2apic support on CPUs that have this feature.
423447
424448 This allows 32-bit apic IDs (so it can support very large systems),
....@@ -430,34 +454,32 @@
430454 bool "Enable MPS table" if ACPI || SFI
431455 default y
432456 depends on X86_LOCAL_APIC
433
- ---help---
457
+ help
434458 For old smp systems that do not have proper acpi support. Newer systems
435459 (esp with 64bit cpus) with acpi support, MADT and DSDT will override it
436460
437461 config GOLDFISH
438
- def_bool y
439
- depends on X86_GOLDFISH
462
+ def_bool y
463
+ depends on X86_GOLDFISH
440464
441
-config RETPOLINE
442
- bool "Avoid speculative indirect branches in kernel"
443
- default y
444
- select STACK_VALIDATION if HAVE_STACK_VALIDATION
445
- help
446
- Compile kernel with the retpoline compiler options to guard against
447
- kernel-to-user data leaks by avoiding speculative indirect
448
- branches. Requires a compiler with -mindirect-branch=thunk-extern
449
- support for full protection. The kernel may run slower.
450
-
451
-config INTEL_RDT
452
- bool "Intel Resource Director Technology support"
453
- default n
454
- depends on X86 && CPU_SUP_INTEL
465
+config X86_CPU_RESCTRL
466
+ bool "x86 CPU resource control support"
467
+ depends on X86 && (CPU_SUP_INTEL || CPU_SUP_AMD)
455468 select KERNFS
469
+ select PROC_CPU_RESCTRL if PROC_FS
456470 help
457
- Select to enable resource allocation and monitoring which are
458
- sub-features of Intel Resource Director Technology(RDT). More
459
- information about RDT can be found in the Intel x86
460
- Architecture Software Developer Manual.
471
+ Enable x86 CPU resource control support.
472
+
473
+ Provide support for the allocation and monitoring of system resources
474
+ usage by the CPU.
475
+
476
+ Intel calls this Intel Resource Director Technology
477
+ (Intel(R) RDT). More information about RDT can be found in the
478
+ Intel x86 Architecture Software Developer Manual.
479
+
480
+ AMD calls this AMD Platform Quality of Service (AMD QoS).
481
+ More information about AMD QoS can be found in the AMD64 Technology
482
+ Platform Quality of Service Extensions manual.
461483
462484 Say N if unsure.
463485
....@@ -465,13 +487,13 @@
465487 config X86_BIGSMP
466488 bool "Support for big SMP systems with more than 8 CPUs"
467489 depends on SMP
468
- ---help---
469
- This option is needed for the systems that have more than 8 CPUs
490
+ help
491
+ This option is needed for the systems that have more than 8 CPUs.
470492
471493 config X86_EXTENDED_PLATFORM
472494 bool "Support for extended (non-PC) x86 platforms"
473495 default y
474
- ---help---
496
+ help
475497 If you disable this option then the kernel will only support
476498 standard PC platforms. (which covers the vast majority of
477499 systems out there.)
....@@ -493,7 +515,7 @@
493515 config X86_EXTENDED_PLATFORM
494516 bool "Support for extended (non-PC) x86 platforms"
495517 default y
496
- ---help---
518
+ help
497519 If you disable this option then the kernel will only support
498520 standard PC platforms. (which covers the vast majority of
499521 systems out there.)
....@@ -517,7 +539,7 @@
517539 depends on SMP
518540 depends on X86_X2APIC
519541 depends on PCI_MMCONFIG
520
- ---help---
542
+ help
521543 Adds support for Numascale NumaChip large-SMP systems. Needed to
522544 enable more than ~168 cores.
523545 If you don't have one of these, you should say N here.
....@@ -529,7 +551,7 @@
529551 depends on X86_64 && PCI
530552 depends on X86_EXTENDED_PLATFORM
531553 depends on SMP
532
- ---help---
554
+ help
533555 Support for ScaleMP vSMP systems. Say 'Y' here if this kernel is
534556 supposed to run on these EM64T-based machines. Only choose this option
535557 if you have one of these machines.
....@@ -543,7 +565,7 @@
543565 depends on KEXEC_CORE
544566 depends on X86_X2APIC
545567 depends on PCI
546
- ---help---
568
+ help
547569 This option is needed in order to support SGI Ultraviolet systems.
548570 If you don't have one of these, you should say N here.
549571
....@@ -551,9 +573,9 @@
551573 # Please maintain the alphabetic order if and when there are additions
552574
553575 config X86_GOLDFISH
554
- bool "Goldfish (Virtual Platform)"
555
- depends on X86_EXTENDED_PLATFORM
556
- ---help---
576
+ bool "Goldfish (Virtual Platform)"
577
+ depends on X86_EXTENDED_PLATFORM
578
+ help
557579 Enable support for the Goldfish virtual platform used primarily
558580 for Android development. Unless you are building for the Android
559581 Goldfish emulator say N here.
....@@ -568,7 +590,7 @@
568590 select X86_REBOOTFIXUPS
569591 select OF
570592 select OF_EARLY_FLATTREE
571
- ---help---
593
+ help
572594 Select for the Intel CE media processor (CE4100) SOC.
573595 This option compiles in support for the CE4100 SOC for settop
574596 boxes and media devices.
....@@ -584,9 +606,9 @@
584606 select I2C
585607 select DW_APB_TIMER
586608 select APB_TIMER
587
- select INTEL_SCU_IPC
609
+ select INTEL_SCU_PCI
588610 select MFD_INTEL_MSIC
589
- ---help---
611
+ help
590612 Select to build a kernel capable of supporting Intel MID (Mobile
591613 Internet Device) platform systems which do not have the PCI legacy
592614 interfaces. If you are building for a PC class system say N here.
....@@ -606,18 +628,18 @@
606628 select IOSF_MBI
607629 select INTEL_IMR
608630 select COMMON_CLK
609
- ---help---
631
+ help
610632 Select to include support for Quark X1000 SoC.
611633 Say Y here if you have a Quark based system such as the Arduino
612634 compatible Intel Galileo.
613635
614636 config X86_INTEL_LPSS
615637 bool "Intel Low Power Subsystem Support"
616
- depends on X86 && ACPI
638
+ depends on X86 && ACPI && PCI
617639 select COMMON_CLK
618640 select PINCTRL
619641 select IOSF_MBI
620
- ---help---
642
+ help
621643 Select to build support for Intel Low Power Subsystem such as
622644 found on Intel Lynxpoint PCH. Selecting this option enables
623645 things like clock tree (common clock framework) and pincontrol
....@@ -628,7 +650,7 @@
628650 depends on ACPI
629651 select COMMON_CLK
630652 select PINCTRL
631
- ---help---
653
+ help
632654 Select to interpret AMD specific ACPI device to platform device
633655 such as I2C, UART, GPIO found on AMD Carrizo and later chipsets.
634656 I2C and UART depend on COMMON_CLK to set clock. GPIO driver is
....@@ -637,7 +659,7 @@
637659 config IOSF_MBI
638660 tristate "Intel SoC IOSF Sideband support for SoC platforms"
639661 depends on PCI
640
- ---help---
662
+ help
641663 This option enables sideband register access support for Intel SoC
642664 platforms. On these platforms the IOSF sideband is used in lieu of
643665 MSR's for some register accesses, mostly but not limited to thermal
....@@ -654,7 +676,7 @@
654676 config IOSF_MBI_DEBUG
655677 bool "Enable IOSF sideband access through debugfs"
656678 depends on IOSF_MBI && DEBUG_FS
657
- ---help---
679
+ help
658680 Select this option to expose the IOSF sideband access registers (MCR,
659681 MDR, MCRX) through debugfs to write and read register information from
660682 different units on the SoC. This is most useful for obtaining device
....@@ -670,7 +692,7 @@
670692 depends on X86_EXTENDED_PLATFORM
671693 select M486
672694 select X86_REBOOTFIXUPS
673
- ---help---
695
+ help
674696 This option is needed for RDC R-321x system-on-chip, also known
675697 as R-8610-(G).
676698 If you don't have one of these chips, you should say N here.
....@@ -679,7 +701,7 @@
679701 bool "Support non-standard 32-bit SMP architectures"
680702 depends on X86_32 && SMP
681703 depends on X86_EXTENDED_PLATFORM
682
- ---help---
704
+ help
683705 This option compiles in the bigsmp and STA2X11 default
684706 subarchitectures. It is intended for a generic binary
685707 kernel. If you select them all, kernel will probe it one by
....@@ -699,14 +721,10 @@
699721 config STA2X11
700722 bool "STA2X11 Companion Chip Support"
701723 depends on X86_32_NON_STANDARD && PCI
702
- select ARCH_HAS_PHYS_TO_DMA
703
- select X86_DEV_DMA_OPS
704
- select X86_DMA_REMAP
705724 select SWIOTLB
706725 select MFD_STA2X11
707726 select GPIOLIB
708
- default n
709
- ---help---
727
+ help
710728 This adds support for boards based on the STA2X11 IO-Hub,
711729 a.k.a. "ConneXt". The chip is used in place of the standard
712730 PC chipset, so all "standard" peripherals are missing. If this
....@@ -716,7 +734,7 @@
716734 config X86_32_IRIS
717735 tristate "Eurobraille/Iris poweroff module"
718736 depends on X86_32
719
- ---help---
737
+ help
720738 The Iris machines from EuroBraille do not have APM or ACPI support
721739 to shut themselves down properly. A special I/O sequence is
722740 needed to do so, which is what this module does at
....@@ -730,7 +748,7 @@
730748 def_bool y
731749 prompt "Single-depth WCHAN output"
732750 depends on X86
733
- ---help---
751
+ help
734752 Calculate simpler /proc/<PID>/wchan values. If this option
735753 is disabled then wchan values will recurse back to the
736754 caller function. This provides more accurate wchan values,
....@@ -740,7 +758,7 @@
740758
741759 menuconfig HYPERVISOR_GUEST
742760 bool "Linux guest support"
743
- ---help---
761
+ help
744762 Say Y here to enable options for running Linux under various hyper-
745763 visors. This option enables basic hypervisor detection and platform
746764 setup.
....@@ -752,23 +770,26 @@
752770
753771 config PARAVIRT
754772 bool "Enable paravirtualization code"
755
- ---help---
773
+ help
756774 This changes the kernel so it can modify itself when it is run
757775 under a hypervisor, potentially improving performance significantly
758776 over full virtualization. However, when run without a hypervisor
759777 the kernel is theoretically slower and slightly larger.
760778
779
+config PARAVIRT_XXL
780
+ bool
781
+
761782 config PARAVIRT_DEBUG
762783 bool "paravirt-ops debugging"
763784 depends on PARAVIRT && DEBUG_KERNEL
764
- ---help---
785
+ help
765786 Enable to debug paravirt_ops internals. Specifically, BUG if
766787 a paravirt_op is missing when it is called.
767788
768789 config PARAVIRT_SPINLOCKS
769790 bool "Paravirtualization layer for spinlocks"
770791 depends on PARAVIRT && SMP
771
- ---help---
792
+ help
772793 Paravirtualized spinlocks allow a pvops backend to replace the
773794 spinlock implementation with something virtualization-friendly
774795 (for example, block the virtual CPU rather than spinning).
....@@ -778,13 +799,8 @@
778799
779800 If you are unsure how to answer this question, answer Y.
780801
781
-config QUEUED_LOCK_STAT
782
- bool "Paravirt queued spinlock statistics"
783
- depends on PARAVIRT_SPINLOCKS && DEBUG_FS
784
- ---help---
785
- Enable the collection of statistical data on the slowpath
786
- behavior of paravirtualized queued spinlocks and report
787
- them on debugfs.
802
+config X86_HV_CALLBACK_VECTOR
803
+ def_bool n
788804
789805 source "arch/x86/xen/Kconfig"
790806
....@@ -792,28 +808,32 @@
792808 bool "KVM Guest support (including kvmclock)"
793809 depends on PARAVIRT
794810 select PARAVIRT_CLOCK
811
+ select ARCH_CPUIDLE_HALTPOLL
812
+ select X86_HV_CALLBACK_VECTOR
795813 default y
796
- ---help---
814
+ help
797815 This option enables various optimizations for running under the KVM
798816 hypervisor. It includes a paravirtualized clock, so that instead
799817 of relying on a PIT (or probably other) emulation by the
800818 underlying device model, the host provides the guest with
801819 timing infrastructure such as time of day, and system time
802820
803
-config KVM_DEBUG_FS
804
- bool "Enable debug information for KVM Guests in debugfs"
805
- depends on KVM_GUEST && DEBUG_FS
806
- default n
807
- ---help---
808
- This option enables collection of various statistics for KVM guest.
809
- Statistics are displayed in debugfs filesystem. Enabling this option
810
- may incur significant overhead.
821
+config ARCH_CPUIDLE_HALTPOLL
822
+ def_bool n
823
+ prompt "Disable host haltpoll when loading haltpoll driver"
824
+ help
825
+ If virtualized under KVM, disable host haltpoll.
826
+
827
+config PVH
828
+ bool "Support for running PVH guests"
829
+ help
830
+ This option enables the PVH entry point for guest virtual machines
831
+ as specified in the x86/HVM direct boot ABI.
811832
812833 config PARAVIRT_TIME_ACCOUNTING
813834 bool "Paravirtual steal time accounting"
814835 depends on PARAVIRT
815
- default n
816
- ---help---
836
+ help
817837 Select this option to enable fine granularity task steal time
818838 accounting. Time spent executing other tasks in parallel with
819839 the current vCPU is discounted from the vCPU power. To account for
....@@ -828,22 +848,30 @@
828848 bool "Jailhouse non-root cell support"
829849 depends on X86_64 && PCI
830850 select X86_PM_TIMER
831
- ---help---
851
+ help
832852 This option allows to run Linux as guest in a Jailhouse non-root
833853 cell. You can leave this option disabled if you only want to start
834854 Jailhouse and run Linux afterwards in the root cell.
835855
836
-endif #HYPERVISOR_GUEST
856
+config ACRN_GUEST
857
+ bool "ACRN Guest support"
858
+ depends on X86_64
859
+ select X86_HV_CALLBACK_VECTOR
860
+ help
861
+ This option allows to run Linux as guest in the ACRN hypervisor. ACRN is
862
+ a flexible, lightweight reference open-source hypervisor, built with
863
+ real-time and safety-criticality in mind. It is built for embedded
864
+ IOT with small footprint and real-time features. More details can be
865
+ found in https://projectacrn.org/.
837866
838
-config NO_BOOTMEM
839
- def_bool y
867
+endif #HYPERVISOR_GUEST
840868
841869 source "arch/x86/Kconfig.cpu"
842870
843871 config HPET_TIMER
844872 def_bool X86_64
845873 prompt "HPET Timer Support" if X86_32
846
- ---help---
874
+ help
847875 Use the IA-PC HPET (High Precision Event Timer) to manage
848876 time in preference to the PIT and RTC, if a HPET is
849877 present.
....@@ -864,16 +892,16 @@
864892 depends on HPET_TIMER && (RTC=y || RTC=m || RTC_DRV_CMOS=m || RTC_DRV_CMOS=y)
865893
866894 config APB_TIMER
867
- def_bool y if X86_INTEL_MID
868
- prompt "Intel MID APB Timer Support" if X86_INTEL_MID
869
- select DW_APB_TIMER
870
- depends on X86_INTEL_MID && SFI
871
- help
872
- APB timer is the replacement for 8254, HPET on X86 MID platforms.
873
- The APBT provides a stable time base on SMP
874
- systems, unlike the TSC, but it is more expensive to access,
875
- as it is off-chip. APB timers are always running regardless of CPU
876
- C states, they are used as per CPU clockevent device when possible.
895
+ def_bool y if X86_INTEL_MID
896
+ prompt "Intel MID APB Timer Support" if X86_INTEL_MID
897
+ select DW_APB_TIMER
898
+ depends on X86_INTEL_MID && SFI
899
+ help
900
+ APB timer is the replacement for 8254, HPET on X86 MID platforms.
901
+ The APBT provides a stable time base on SMP
902
+ systems, unlike the TSC, but it is more expensive to access,
903
+ as it is off-chip. APB timers are always running regardless of CPU
904
+ C states, they are used as per CPU clockevent device when possible.
877905
878906 # Mark as expert because too many people got it wrong.
879907 # The code disables itself when not needed.
....@@ -881,7 +909,7 @@
881909 default y
882910 select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
883911 bool "Enable DMI scanning" if EXPERT
884
- ---help---
912
+ help
885913 Enabled scanning of DMI to identify machine quirks. Say Y
886914 here unless you have verified that your setup is not
887915 affected by entries in the DMI blacklist. Required by PNP
....@@ -889,10 +917,11 @@
889917
890918 config GART_IOMMU
891919 bool "Old AMD GART IOMMU support"
920
+ select DMA_OPS
892921 select IOMMU_HELPER
893922 select SWIOTLB
894923 depends on X86_64 && PCI && AMD_NB
895
- ---help---
924
+ help
896925 Provides a driver for older AMD Athlon64/Opteron/Turion/Sempron
897926 GART based hardware IOMMUs.
898927
....@@ -909,41 +938,11 @@
909938
910939 If unsure, say Y.
911940
912
-config CALGARY_IOMMU
913
- bool "IBM Calgary IOMMU support"
914
- select IOMMU_HELPER
915
- select SWIOTLB
916
- depends on X86_64 && PCI
917
- ---help---
918
- Support for hardware IOMMUs in IBM's xSeries x366 and x460
919
- systems. Needed to run systems with more than 3GB of memory
920
- properly with 32-bit PCI devices that do not support DAC
921
- (Double Address Cycle). Calgary also supports bus level
922
- isolation, where all DMAs pass through the IOMMU. This
923
- prevents them from going anywhere except their intended
924
- destination. This catches hard-to-find kernel bugs and
925
- mis-behaving drivers and devices that do not use the DMA-API
926
- properly to set up their DMA buffers. The IOMMU can be
927
- turned off at boot time with the iommu=off parameter.
928
- Normally the kernel will make the right choice by itself.
929
- If unsure, say Y.
930
-
931
-config CALGARY_IOMMU_ENABLED_BY_DEFAULT
932
- def_bool y
933
- prompt "Should Calgary be enabled by default?"
934
- depends on CALGARY_IOMMU
935
- ---help---
936
- Should Calgary be enabled by default? if you choose 'y', Calgary
937
- will be used (if it exists). If you choose 'n', Calgary will not be
938
- used even if it exists. If you choose 'n' and would like to use
939
- Calgary anyway, pass 'iommu=calgary' on the kernel command line.
940
- If unsure, say Y.
941
-
942941 config MAXSMP
943942 bool "Enable Maximum number of SMP Processors and NUMA Nodes"
944943 depends on X86_64 && SMP && DEBUG_KERNEL
945
- select CPUMASK_OFFSTACK if !PREEMPT_RT_FULL
946
- ---help---
944
+ select CPUMASK_OFFSTACK
945
+ help
947946 Enable maximum number of CPUS and NUMA Nodes for this architecture.
948947 If unsure, say N.
949948
....@@ -977,8 +976,8 @@
977976 config NR_CPUS_RANGE_END
978977 int
979978 depends on X86_64
980
- default 8192 if SMP && ( MAXSMP || CPUMASK_OFFSTACK)
981
- default 512 if SMP && (!MAXSMP && !CPUMASK_OFFSTACK)
979
+ default 8192 if SMP && CPUMASK_OFFSTACK
980
+ default 512 if SMP && !CPUMASK_OFFSTACK
982981 default 1 if !SMP
983982
984983 config NR_CPUS_DEFAULT
....@@ -999,7 +998,7 @@
999998 int "Maximum number of CPUs" if SMP && !MAXSMP
1000999 range NR_CPUS_RANGE_BEGIN NR_CPUS_RANGE_END
10011000 default NR_CPUS_DEFAULT
1002
- ---help---
1001
+ help
10031002 This allows you to specify the maximum number of CPUs which this
10041003 kernel will support. If CPUMASK_OFFSTACK is enabled, the maximum
10051004 supported value is 8192, otherwise the maximum value is 512. The
....@@ -1015,7 +1014,7 @@
10151014 def_bool y
10161015 prompt "Multi-core scheduler support"
10171016 depends on SMP
1018
- ---help---
1017
+ help
10191018 Multi-core scheduler support improves the CPU scheduler's decision
10201019 making when dealing with multi-core CPU chips at a cost of slightly
10211020 increased overhead in some places. If unsure say N here.
....@@ -1026,7 +1025,7 @@
10261025 select X86_INTEL_PSTATE
10271026 select CPU_FREQ
10281027 default y
1029
- ---help---
1028
+ help
10301029 Intel Turbo Boost Max Technology 3.0 enabled CPUs have a
10311030 core ordering determined at manufacturing time, which allows
10321031 certain cores to reach higher turbo frequencies (when running
....@@ -1042,14 +1041,14 @@
10421041 If unsure say Y here.
10431042
10441043 config UP_LATE_INIT
1045
- def_bool y
1046
- depends on !SMP && X86_LOCAL_APIC
1044
+ def_bool y
1045
+ depends on !SMP && X86_LOCAL_APIC
10471046
10481047 config X86_UP_APIC
10491048 bool "Local APIC support on uniprocessors" if !PCI_MSI
10501049 default PCI_MSI
10511050 depends on X86_32 && !SMP && !X86_32_NON_STANDARD
1052
- ---help---
1051
+ help
10531052 A local APIC (Advanced Programmable Interrupt Controller) is an
10541053 integrated interrupt controller in the CPU. If you have a single-CPU
10551054 system which has a processor with a local APIC, you can say Y here to
....@@ -1062,7 +1061,7 @@
10621061 config X86_UP_IOAPIC
10631062 bool "IO-APIC support on uniprocessors"
10641063 depends on X86_UP_APIC
1065
- ---help---
1064
+ help
10661065 An IO-APIC (I/O Advanced Programmable Interrupt Controller) is an
10671066 SMP-capable replacement for PC-style interrupt controllers. Most
10681067 SMP systems and many recent uniprocessor systems have one.
....@@ -1084,7 +1083,7 @@
10841083 config X86_REROUTE_FOR_BROKEN_BOOT_IRQS
10851084 bool "Reroute for broken boot IRQs"
10861085 depends on X86_IO_APIC
1087
- ---help---
1086
+ help
10881087 This option enables a workaround that fixes a source of
10891088 spurious interrupts. This is recommended when threaded
10901089 interrupt handling is used on systems where the generation of
....@@ -1108,7 +1107,7 @@
11081107 bool "Machine Check / overheating reporting"
11091108 select GENERIC_ALLOCATOR
11101109 default y
1111
- ---help---
1110
+ help
11121111 Machine Check support allows the processor to notify the
11131112 kernel if it detects a problem (e.g. overheating, data corruption).
11141113 The action the kernel takes depends on the severity of the problem,
....@@ -1117,7 +1116,7 @@
11171116 config X86_MCELOG_LEGACY
11181117 bool "Support for deprecated /dev/mcelog character device"
11191118 depends on X86_MCE
1120
- ---help---
1119
+ help
11211120 Enable support for /dev/mcelog which is needed by the old mcelog
11221121 userspace logging daemon. Consider switching to the new generation
11231122 rasdaemon solution.
....@@ -1126,7 +1125,7 @@
11261125 def_bool y
11271126 prompt "Intel MCE features"
11281127 depends on X86_MCE && X86_LOCAL_APIC
1129
- ---help---
1128
+ help
11301129 Additional support for intel specific MCE features such as
11311130 the thermal monitor.
11321131
....@@ -1134,14 +1133,14 @@
11341133 def_bool y
11351134 prompt "AMD MCE features"
11361135 depends on X86_MCE && X86_LOCAL_APIC && AMD_NB
1137
- ---help---
1136
+ help
11381137 Additional support for AMD specific MCE features such as
11391138 the DRAM Error Threshold.
11401139
11411140 config X86_ANCIENT_MCE
11421141 bool "Support for old Pentium 5 / WinChip machine checks"
11431142 depends on X86_32 && X86_MCE
1144
- ---help---
1143
+ help
11451144 Include support for machine check handling on old Pentium 5 or WinChip
11461145 systems. These typically need to be enabled explicitly on the command
11471146 line.
....@@ -1153,7 +1152,7 @@
11531152 config X86_MCE_INJECT
11541153 depends on X86_MCE && X86_LOCAL_APIC && DEBUG_FS
11551154 tristate "Machine check injector support"
1156
- ---help---
1155
+ help
11571156 Provide support for injecting machine checks for testing purposes.
11581157 If you don't know what a machine check is and you don't do kernel
11591158 QA it is safe to say n.
....@@ -1166,9 +1165,8 @@
11661165
11671166 config X86_LEGACY_VM86
11681167 bool "Legacy VM86 support"
1169
- default n
11701168 depends on X86_32
1171
- ---help---
1169
+ help
11721170 This option allows user programs to put the CPU into V8086
11731171 mode, which is an 80286-era approximation of 16-bit real mode.
11741172
....@@ -1193,14 +1191,14 @@
11931191 If unsure, say N here.
11941192
11951193 config VM86
1196
- bool
1197
- default X86_LEGACY_VM86
1194
+ bool
1195
+ default X86_LEGACY_VM86
11981196
11991197 config X86_16BIT
12001198 bool "Enable support for 16-bit segments" if EXPERT
12011199 default y
12021200 depends on MODIFY_LDT_SYSCALL
1203
- ---help---
1201
+ help
12041202 This option is required by programs like Wine to run 16-bit
12051203 protected mode legacy code on x86 processors. Disabling
12061204 this option saves about 300 bytes on i386, or around 6K text
....@@ -1215,10 +1213,10 @@
12151213 depends on X86_16BIT && X86_64
12161214
12171215 config X86_VSYSCALL_EMULATION
1218
- bool "Enable vsyscall emulation" if EXPERT
1219
- default y
1220
- depends on X86_64
1221
- ---help---
1216
+ bool "Enable vsyscall emulation" if EXPERT
1217
+ default y
1218
+ depends on X86_64
1219
+ help
12221220 This enables emulation of the legacy vsyscall page. Disabling
12231221 it is roughly equivalent to booting with vsyscall=none, except
12241222 that it will also disable the helpful warning if a program
....@@ -1232,10 +1230,28 @@
12321230 Disabling this option saves about 7K of kernel size and
12331231 possibly 4K of additional runtime pagetable memory.
12341232
1233
+config X86_IOPL_IOPERM
1234
+ bool "IOPERM and IOPL Emulation"
1235
+ default y
1236
+ help
1237
+ This enables the ioperm() and iopl() syscalls which are necessary
1238
+ for legacy applications.
1239
+
1240
+ Legacy IOPL support is an overbroad mechanism which allows user
1241
+ space aside of accessing all 65536 I/O ports also to disable
1242
+ interrupts. To gain this access the caller needs CAP_SYS_RAWIO
1243
+ capabilities and permission from potentially active security
1244
+ modules.
1245
+
1246
+ The emulation restricts the functionality of the syscall to
1247
+ only allowing the full range I/O port access, but prevents the
1248
+ ability to disable interrupts from user space which would be
1249
+ granted if the hardware IOPL mechanism would be used.
1250
+
12351251 config TOSHIBA
12361252 tristate "Toshiba Laptop support"
12371253 depends on X86_32
1238
- ---help---
1254
+ help
12391255 This adds a driver to safely access the System Management Mode of
12401256 the CPU on Toshiba portables with a genuine Toshiba BIOS. It does
12411257 not work on models with a Phoenix BIOS. The System Management Mode
....@@ -1250,9 +1266,10 @@
12501266
12511267 config I8K
12521268 tristate "Dell i8k legacy laptop support"
1253
- select HWMON
1269
+ depends on HWMON
1270
+ depends on PROC_FS
12541271 select SENSORS_DELL_SMM
1255
- ---help---
1272
+ help
12561273 This option enables legacy /proc/i8k userspace interface in hwmon
12571274 dell-smm-hwmon driver. Character file /proc/i8k reports bios version,
12581275 temperature and allows controlling fan speeds of Dell laptops via
....@@ -1267,7 +1284,7 @@
12671284 config X86_REBOOTFIXUPS
12681285 bool "Enable X86 board specific fixups for reboot"
12691286 depends on X86_32
1270
- ---help---
1287
+ help
12711288 This enables chipset and/or board specific fixups to be done
12721289 in order to get reboot to work correctly. This is only needed on
12731290 some combinations of hardware and BIOS. The symptom, for which
....@@ -1285,8 +1302,7 @@
12851302 bool "CPU microcode loading support"
12861303 default y
12871304 depends on CPU_SUP_AMD || CPU_SUP_INTEL
1288
- select FW_LOADER
1289
- ---help---
1305
+ help
12901306 If you say Y here, you will be able to update the microcode on
12911307 Intel and AMD processors. The Intel support is for the IA32 family,
12921308 e.g. Pentium Pro, Pentium II, Pentium III, Pentium 4, Xeon etc. The
....@@ -1295,7 +1311,7 @@
12951311 the Linux kernel.
12961312
12971313 The preferred method to load microcode from a detached initrd is described
1298
- in Documentation/x86/microcode.txt. For that you need to enable
1314
+ in Documentation/x86/microcode.rst. For that you need to enable
12991315 CONFIG_BLK_DEV_INITRD in order for the loader to be able to scan the
13001316 initrd for microcode blobs.
13011317
....@@ -1305,10 +1321,9 @@
13051321
13061322 config MICROCODE_INTEL
13071323 bool "Intel microcode loading support"
1308
- depends on MICROCODE
1324
+ depends on CPU_SUP_INTEL && MICROCODE
13091325 default MICROCODE
1310
- select FW_LOADER
1311
- ---help---
1326
+ help
13121327 This options enables microcode patch loading support for Intel
13131328 processors.
13141329
....@@ -1318,19 +1333,26 @@
13181333
13191334 config MICROCODE_AMD
13201335 bool "AMD microcode loading support"
1321
- depends on MICROCODE
1322
- select FW_LOADER
1323
- ---help---
1336
+ depends on CPU_SUP_AMD && MICROCODE
1337
+ help
13241338 If you select this option, microcode patch loading support for AMD
13251339 processors will be enabled.
13261340
13271341 config MICROCODE_OLD_INTERFACE
1328
- def_bool y
1342
+ bool "Ancient loading interface (DEPRECATED)"
1343
+ default n
13291344 depends on MICROCODE
1345
+ help
1346
+ DO NOT USE THIS! This is the ancient /dev/cpu/microcode interface
1347
+ which was used by userspace tools like iucode_tool and microcode.ctl.
1348
+ It is inadequate because it runs too late to be able to properly
1349
+ load microcode on a machine and it needs special tools. Instead, you
1350
+ should've switched to the early loading method with the initrd or
1351
+ builtin microcode by now: Documentation/x86/microcode.rst
13301352
13311353 config X86_MSR
13321354 tristate "/dev/cpu/*/msr - Model-specific register support"
1333
- ---help---
1355
+ help
13341356 This device gives privileged processes access to the x86
13351357 Model-Specific Registers (MSRs). It is a character device with
13361358 major 202 and minors 0 to 31 for /dev/cpu/0/msr to /dev/cpu/31/msr.
....@@ -1339,7 +1361,7 @@
13391361
13401362 config X86_CPUID
13411363 tristate "/dev/cpu/*/cpuid - CPU information support"
1342
- ---help---
1364
+ help
13431365 This device gives processes access to the x86 CPUID instruction to
13441366 be executed on a specific processor. It is a character device
13451367 with major 203 and minors 0 to 31 for /dev/cpu/0/cpuid to
....@@ -1352,7 +1374,7 @@
13521374
13531375 config NOHIGHMEM
13541376 bool "off"
1355
- ---help---
1377
+ help
13561378 Linux can use up to 64 Gigabytes of physical memory on x86 systems.
13571379 However, the address space of 32-bit x86 processors is only 4
13581380 Gigabytes large. That means that, if you have a large amount of
....@@ -1388,15 +1410,15 @@
13881410
13891411 config HIGHMEM4G
13901412 bool "4GB"
1391
- ---help---
1413
+ help
13921414 Select this if you have a 32-bit processor and between 1 and 4
13931415 gigabytes of physical RAM.
13941416
13951417 config HIGHMEM64G
13961418 bool "64GB"
1397
- depends on !M486 && !M586 && !M586TSC && !M586MMX && !MGEODE_LX && !MGEODEGX1 && !MCYRIXIII && !MELAN && !MWINCHIPC6 && !MWINCHIP3D && !MK6
1419
+ depends on !M486SX && !M486 && !M586 && !M586TSC && !M586MMX && !MGEODE_LX && !MGEODEGX1 && !MCYRIXIII && !MELAN && !MWINCHIPC6 && !MWINCHIP3D && !MK6
13981420 select X86_PAE
1399
- ---help---
1421
+ help
14001422 Select this if you have a 32-bit processor and more than 4
14011423 gigabytes of physical RAM.
14021424
....@@ -1406,7 +1428,7 @@
14061428 prompt "Memory split" if EXPERT
14071429 default VMSPLIT_3G
14081430 depends on X86_32
1409
- ---help---
1431
+ help
14101432 Select the desired split between kernel and user memory.
14111433
14121434 If the address range available to the kernel is less than the
....@@ -1454,7 +1476,7 @@
14541476 depends on X86_32 && !HIGHMEM4G
14551477 select PHYS_ADDR_T_64BIT
14561478 select SWIOTLB
1457
- ---help---
1479
+ help
14581480 PAE is required for NX support, and furthermore enables
14591481 larger swapspace support for non-overcommit purposes. It
14601482 has the cost of more pagetable lookup overhead, and also
....@@ -1462,10 +1484,11 @@
14621484
14631485 config X86_5LEVEL
14641486 bool "Enable 5-level page tables support"
1487
+ default y
14651488 select DYNAMIC_MEMORY_LAYOUT
14661489 select SPARSEMEM_VMEMMAP
14671490 depends on X86_64
1468
- ---help---
1491
+ help
14691492 5-level paging enables access to larger address space:
14701493 upto 128 PiB of virtual address space and 4 PiB of
14711494 physical address space.
....@@ -1475,29 +1498,38 @@
14751498 A kernel with the option enabled can be booted on machines that
14761499 support 4- or 5-level paging.
14771500
1478
- See Documentation/x86/x86_64/5level-paging.txt for more
1501
+ See Documentation/x86/x86_64/5level-paging.rst for more
14791502 information.
14801503
14811504 Say N if unsure.
14821505
14831506 config X86_DIRECT_GBPAGES
14841507 def_bool y
1485
- depends on X86_64 && !DEBUG_PAGEALLOC
1486
- ---help---
1508
+ depends on X86_64
1509
+ help
14871510 Certain kernel features effectively disable kernel
14881511 linear 1 GB mappings (even if the CPU otherwise
14891512 supports them), so don't confuse the user by printing
14901513 that we have them enabled.
14911514
1492
-config ARCH_HAS_MEM_ENCRYPT
1493
- def_bool y
1515
+config X86_CPA_STATISTICS
1516
+ bool "Enable statistic for Change Page Attribute"
1517
+ depends on DEBUG_FS
1518
+ help
1519
+ Expose statistics about the Change Page Attribute mechanism, which
1520
+ helps to determine the effectiveness of preserving large and huge
1521
+ page mappings when mapping protections are changed.
14941522
14951523 config AMD_MEM_ENCRYPT
14961524 bool "AMD Secure Memory Encryption (SME) support"
14971525 depends on X86_64 && CPU_SUP_AMD
1526
+ select DMA_COHERENT_POOL
14981527 select DYNAMIC_PHYSICAL_MASK
14991528 select ARCH_USE_MEMREMAP_PROT
1500
- ---help---
1529
+ select ARCH_HAS_FORCE_DMA_UNENCRYPTED
1530
+ select INSTRUCTION_DECODER
1531
+ select ARCH_HAS_CC_PLATFORM
1532
+ help
15011533 Say yes to enable support for the encryption of system memory.
15021534 This requires an AMD processor that supports Secure Memory
15031535 Encryption (SME).
....@@ -1505,7 +1537,7 @@
15051537 config AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT
15061538 bool "Activate AMD Secure Memory Encryption (SME) by default"
15071539 depends on AMD_MEM_ENCRYPT
1508
- ---help---
1540
+ help
15091541 Say yes to have system memory encrypted by default if running on
15101542 an AMD processor that supports Secure Memory Encryption (SME).
15111543
....@@ -1517,12 +1549,12 @@
15171549
15181550 # Common NUMA Features
15191551 config NUMA
1520
- bool "Numa Memory Allocation and Scheduler Support"
1552
+ bool "NUMA Memory Allocation and Scheduler Support"
15211553 depends on SMP
15221554 depends on X86_64 || (X86_32 && HIGHMEM64G && X86_BIGSMP)
15231555 default y if X86_BIGSMP
1524
- ---help---
1525
- Enable NUMA (Non Uniform Memory Access) support.
1556
+ help
1557
+ Enable NUMA (Non-Uniform Memory Access) support.
15261558
15271559 The kernel will try to allocate memory used by a CPU on the
15281560 local memory controller of the CPU and add some more
....@@ -1540,7 +1572,7 @@
15401572 def_bool y
15411573 prompt "Old style AMD Opteron NUMA detection"
15421574 depends on X86_64 && NUMA && PCI
1543
- ---help---
1575
+ help
15441576 Enable AMD NUMA node topology detection. You should say Y here if
15451577 you have a multi processor AMD system. This uses an old method to
15461578 read the NUMA configuration directly from the builtin Northbridge
....@@ -1552,22 +1584,13 @@
15521584 prompt "ACPI NUMA detection"
15531585 depends on X86_64 && NUMA && ACPI && PCI
15541586 select ACPI_NUMA
1555
- ---help---
1587
+ help
15561588 Enable ACPI SRAT based node topology detection.
1557
-
1558
-# Some NUMA nodes have memory ranges that span
1559
-# other nodes. Even though a pfn is valid and
1560
-# between a node's start and end pfns, it may not
1561
-# reside on that node. See memmap_init_zone()
1562
-# for details.
1563
-config NODES_SPAN_OTHER_NODES
1564
- def_bool y
1565
- depends on X86_64_ACPI_NUMA
15661589
15671590 config NUMA_EMU
15681591 bool "NUMA emulation"
15691592 depends on NUMA
1570
- ---help---
1593
+ help
15711594 Enable NUMA emulation. A flat machine will be split
15721595 into virtual nodes when booted with "numa=fake=N", where N is the
15731596 number of nodes. This is only useful for debugging.
....@@ -1579,25 +1602,13 @@
15791602 default "6" if X86_64
15801603 default "3"
15811604 depends on NEED_MULTIPLE_NODES
1582
- ---help---
1605
+ help
15831606 Specify the maximum number of NUMA Nodes available on the target
15841607 system. Increases memory reserved to accommodate various tables.
1585
-
1586
-config ARCH_HAVE_MEMORY_PRESENT
1587
- def_bool y
1588
- depends on X86_32 && DISCONTIGMEM
15891608
15901609 config ARCH_FLATMEM_ENABLE
15911610 def_bool y
15921611 depends on X86_32 && !NUMA
1593
-
1594
-config ARCH_DISCONTIGMEM_ENABLE
1595
- def_bool y
1596
- depends on NUMA && X86_32
1597
-
1598
-config ARCH_DISCONTIGMEM_DEFAULT
1599
- def_bool y
1600
- depends on NUMA && X86_32
16011612
16021613 config ARCH_SPARSEMEM_ENABLE
16031614 def_bool y
....@@ -1606,8 +1617,7 @@
16061617 select SPARSEMEM_VMEMMAP_ENABLE if X86_64
16071618
16081619 config ARCH_SPARSEMEM_DEFAULT
1609
- def_bool y
1610
- depends on X86_64
1620
+ def_bool X86_64 || (NUMA && X86_32)
16111621
16121622 config ARCH_SELECT_MEMORY_MODEL
16131623 def_bool y
....@@ -1618,7 +1628,7 @@
16181628 depends on X86_64 && MEMORY_HOTPLUG
16191629 help
16201630 This option enables a sysfs memory/probe interface for testing.
1621
- See Documentation/memory-hotplug.txt for more information.
1631
+ See Documentation/admin-guide/mm/memory-hotplug.rst for more information.
16221632 If you are unsure how to answer this question, answer N.
16231633
16241634 config ARCH_PROC_KCORE_TEXT
....@@ -1626,9 +1636,9 @@
16261636 depends on X86_64 && PROC_KCORE
16271637
16281638 config ILLEGAL_POINTER_VALUE
1629
- hex
1630
- default 0 if X86_32
1631
- default 0xdead000000000000 if X86_64
1639
+ hex
1640
+ default 0 if X86_32
1641
+ default 0xdead000000000000 if X86_64
16321642
16331643 config X86_PMEM_LEGACY_DEVICE
16341644 bool
....@@ -1638,6 +1648,7 @@
16381648 depends on PHYS_ADDR_T_64BIT
16391649 depends on BLK_DEV
16401650 select X86_PMEM_LEGACY_DEVICE
1651
+ select NUMA_KEEP_MEMINFO if NUMA
16411652 select LIBNVDIMM
16421653 help
16431654 Treat memory marked using the non-standard e820 type of 12 as used
....@@ -1650,7 +1661,7 @@
16501661 config HIGHPTE
16511662 bool "Allocate 3rd-level pagetables from highmem"
16521663 depends on HIGHMEM
1653
- ---help---
1664
+ help
16541665 The VM uses one page table entry for each page of physical memory.
16551666 For systems with a lot of RAM, this can be wasteful of precious
16561667 low memory. Setting this option will put user-space page table
....@@ -1658,7 +1669,7 @@
16581669
16591670 config X86_CHECK_BIOS_CORRUPTION
16601671 bool "Check for low memory corruption"
1661
- ---help---
1672
+ help
16621673 Periodically check for memory corruption in low memory, which
16631674 is suspected to be caused by BIOS. Even when enabled in the
16641675 configuration, it is disabled at runtime. Enable it by
....@@ -1682,7 +1693,7 @@
16821693 bool "Set the default setting of memory_corruption_check"
16831694 depends on X86_CHECK_BIOS_CORRUPTION
16841695 default y
1685
- ---help---
1696
+ help
16861697 Set whether the default state of memory_corruption_check is
16871698 on or off.
16881699
....@@ -1690,7 +1701,7 @@
16901701 int "Amount of low memory, in kilobytes, to reserve for the BIOS"
16911702 default 64
16921703 range 4 640
1693
- ---help---
1704
+ help
16941705 Specify the amount of low memory to reserve for the BIOS.
16951706
16961707 The first page contains BIOS data structures that the kernel
....@@ -1718,8 +1729,8 @@
17181729 config MATH_EMULATION
17191730 bool
17201731 depends on MODIFY_LDT_SYSCALL
1721
- prompt "Math emulation" if X86_32
1722
- ---help---
1732
+ prompt "Math emulation" if X86_32 && (M486SX || MELAN)
1733
+ help
17231734 Linux can emulate a math coprocessor (used for floating point
17241735 operations) if you don't have one. 486DX and Pentium processors have
17251736 a math coprocessor built in, 486SX and 386 do not, unless you added
....@@ -1745,7 +1756,7 @@
17451756 config MTRR
17461757 def_bool y
17471758 prompt "MTRR (Memory Type Range Register) support" if EXPERT
1748
- ---help---
1759
+ help
17491760 On Intel P6 family processors (Pentium Pro, Pentium II and later)
17501761 the Memory Type Range Registers (MTRRs) may be used to control
17511762 processor access to memory ranges. This is most useful if you have
....@@ -1775,13 +1786,13 @@
17751786 You can safely say Y even if your machine doesn't have MTRRs, you'll
17761787 just add about 9 KB to your kernel.
17771788
1778
- See <file:Documentation/x86/mtrr.txt> for more information.
1789
+ See <file:Documentation/x86/mtrr.rst> for more information.
17791790
17801791 config MTRR_SANITIZER
17811792 def_bool y
17821793 prompt "MTRR cleanup support"
17831794 depends on MTRR
1784
- ---help---
1795
+ help
17851796 Convert MTRR layout from continuous to discrete, so X drivers can
17861797 add writeback entries.
17871798
....@@ -1796,7 +1807,7 @@
17961807 range 0 1
17971808 default "0"
17981809 depends on MTRR_SANITIZER
1799
- ---help---
1810
+ help
18001811 Enable mtrr cleanup default value
18011812
18021813 config MTRR_SANITIZER_SPARE_REG_NR_DEFAULT
....@@ -1804,7 +1815,7 @@
18041815 range 0 7
18051816 default "1"
18061817 depends on MTRR_SANITIZER
1807
- ---help---
1818
+ help
18081819 mtrr cleanup spare entries default, it can be changed via
18091820 mtrr_spare_reg_nr=N on the kernel command line.
18101821
....@@ -1812,7 +1823,7 @@
18121823 def_bool y
18131824 prompt "x86 PAT support" if EXPERT
18141825 depends on MTRR
1815
- ---help---
1826
+ help
18161827 Use PAT attributes to setup page level cache control.
18171828
18181829 PATs are the modern equivalents of MTRRs and are much more
....@@ -1830,7 +1841,7 @@
18301841 config ARCH_RANDOM
18311842 def_bool y
18321843 prompt "x86 architectural random number generator" if EXPERT
1833
- ---help---
1844
+ help
18341845 Enable the x86 architectural RDRAND instruction
18351846 (Intel Bull Mountain technology) to generate random numbers.
18361847 If supported, this is a high bandwidth, cryptographically
....@@ -1839,7 +1850,7 @@
18391850 config X86_SMAP
18401851 def_bool y
18411852 prompt "Supervisor Mode Access Prevention" if EXPERT
1842
- ---help---
1853
+ help
18431854 Supervisor Mode Access Prevention (SMAP) is a security
18441855 feature in newer Intel processors. There is a small
18451856 performance cost if this enabled and turned on; there is
....@@ -1847,63 +1858,34 @@
18471858
18481859 If unsure, say Y.
18491860
1850
-config X86_INTEL_UMIP
1861
+config X86_UMIP
18511862 def_bool y
1852
- depends on CPU_SUP_INTEL
1853
- prompt "Intel User Mode Instruction Prevention" if EXPERT
1854
- ---help---
1855
- The User Mode Instruction Prevention (UMIP) is a security
1856
- feature in newer Intel processors. If enabled, a general
1857
- protection fault is issued if the SGDT, SLDT, SIDT, SMSW
1858
- or STR instructions are executed in user mode. These instructions
1859
- unnecessarily expose information about the hardware state.
1863
+ prompt "User Mode Instruction Prevention" if EXPERT
1864
+ help
1865
+ User Mode Instruction Prevention (UMIP) is a security feature in
1866
+ some x86 processors. If enabled, a general protection fault is
1867
+ issued if the SGDT, SLDT, SIDT, SMSW or STR instructions are
1868
+ executed in user mode. These instructions unnecessarily expose
1869
+ information about the hardware state.
18601870
18611871 The vast majority of applications do not use these instructions.
18621872 For the very few that do, software emulation is provided in
18631873 specific cases in protected and virtual-8086 modes. Emulated
18641874 results are dummy.
18651875
1866
-config X86_INTEL_MPX
1867
- prompt "Intel MPX (Memory Protection Extensions)"
1868
- def_bool n
1869
- # Note: only available in 64-bit mode due to VMA flags shortage
1870
- depends on CPU_SUP_INTEL && X86_64
1871
- select ARCH_USES_HIGH_VMA_FLAGS
1872
- ---help---
1873
- MPX provides hardware features that can be used in
1874
- conjunction with compiler-instrumented code to check
1875
- memory references. It is designed to detect buffer
1876
- overflow or underflow bugs.
1877
-
1878
- This option enables running applications which are
1879
- instrumented or otherwise use MPX. It does not use MPX
1880
- itself inside the kernel or to protect the kernel
1881
- against bad memory references.
1882
-
1883
- Enabling this option will make the kernel larger:
1884
- ~8k of kernel text and 36 bytes of data on a 64-bit
1885
- defconfig. It adds a long to the 'mm_struct' which
1886
- will increase the kernel memory overhead of each
1887
- process and adds some branches to paths used during
1888
- exec() and munmap().
1889
-
1890
- For details, see Documentation/x86/intel_mpx.txt
1891
-
1892
- If unsure, say N.
1893
-
18941876 config X86_INTEL_MEMORY_PROTECTION_KEYS
1895
- prompt "Intel Memory Protection Keys"
1877
+ prompt "Memory Protection Keys"
18961878 def_bool y
18971879 # Note: only available in 64-bit mode
1898
- depends on CPU_SUP_INTEL && X86_64
1880
+ depends on X86_64 && (CPU_SUP_INTEL || CPU_SUP_AMD)
18991881 select ARCH_USES_HIGH_VMA_FLAGS
19001882 select ARCH_HAS_PKEYS
1901
- ---help---
1883
+ help
19021884 Memory Protection Keys provides a mechanism for enforcing
19031885 page-based protections, but without requiring modification of the
19041886 page tables when an application changes protection domains.
19051887
1906
- For details, see Documentation/x86/protection-keys.txt
1888
+ For details, see Documentation/core-api/protection-keys.rst
19071889
19081890 If unsure, say y.
19091891
....@@ -1958,7 +1940,7 @@
19581940 select UCS2_STRING
19591941 select EFI_RUNTIME_WRAPPERS
19601942 select ARCH_USE_MEMREMAP_PROT
1961
- ---help---
1943
+ help
19621944 This enables the kernel to use EFI runtime services that are
19631945 available (such as the EFI variable services).
19641946
....@@ -1970,19 +1952,19 @@
19701952 platforms.
19711953
19721954 config EFI_STUB
1973
- bool "EFI stub support"
1974
- depends on EFI && !X86_USE_3DNOW
1975
- select RELOCATABLE
1976
- ---help---
1977
- This kernel feature allows a bzImage to be loaded directly
1955
+ bool "EFI stub support"
1956
+ depends on EFI && !X86_USE_3DNOW
1957
+ select RELOCATABLE
1958
+ help
1959
+ This kernel feature allows a bzImage to be loaded directly
19781960 by EFI firmware without the use of a bootloader.
19791961
1980
- See Documentation/efi-stub.txt for more information.
1962
+ See Documentation/admin-guide/efi-stub.rst for more information.
19811963
19821964 config EFI_MIXED
19831965 bool "EFI mixed-mode support"
19841966 depends on EFI_STUB && X86_64
1985
- ---help---
1967
+ help
19861968 Enabling this feature allows a 64-bit kernel to be booted
19871969 on a 32-bit firmware, provided that your CPU supports 64-bit
19881970 mode.
....@@ -1993,28 +1975,12 @@
19931975
19941976 If unsure, say N.
19951977
1996
-config SECCOMP
1997
- def_bool y
1998
- prompt "Enable seccomp to safely compute untrusted bytecode"
1999
- ---help---
2000
- This kernel feature is useful for number crunching applications
2001
- that may need to compute untrusted bytecode during their
2002
- execution. By using pipes or other transports made available to
2003
- the process as file descriptors supporting the read/write
2004
- syscalls, it's possible to isolate those applications in
2005
- their own address space using seccomp. Once seccomp is
2006
- enabled via prctl(PR_SET_SECCOMP), it cannot be disabled
2007
- and the task is only allowed to execute a few safe syscalls
2008
- defined by each seccomp mode.
2009
-
2010
- If unsure, say Y. Only embedded should say N here.
2011
-
2012
-source kernel/Kconfig.hz
1978
+source "kernel/Kconfig.hz"
20131979
20141980 config KEXEC
20151981 bool "kexec system call"
20161982 select KEXEC_CORE
2017
- ---help---
1983
+ help
20181984 kexec is a system call that implements the ability to shutdown your
20191985 current kernel, and to start another kernel. It is like a reboot
20201986 but it is independent of the system firmware. And like a reboot
....@@ -2035,7 +2001,7 @@
20352001 depends on X86_64
20362002 depends on CRYPTO=y
20372003 depends on CRYPTO_SHA256=y
2038
- ---help---
2004
+ help
20392005 This is new version of kexec system call. This system call is
20402006 file based and takes file descriptors as system call argument
20412007 for kernel and initramfs as opposed to list of segments as
....@@ -2044,29 +2010,39 @@
20442010 config ARCH_HAS_KEXEC_PURGATORY
20452011 def_bool KEXEC_FILE
20462012
2047
-config KEXEC_VERIFY_SIG
2013
+config KEXEC_SIG
20482014 bool "Verify kernel signature during kexec_file_load() syscall"
20492015 depends on KEXEC_FILE
2050
- ---help---
2051
- This option makes kernel signature verification mandatory for
2052
- the kexec_file_load() syscall.
2016
+ help
20532017
2054
- In addition to that option, you need to enable signature
2018
+ This option makes the kexec_file_load() syscall check for a valid
2019
+ signature of the kernel image. The image can still be loaded without
2020
+ a valid signature unless you also enable KEXEC_SIG_FORCE, though if
2021
+ there's a signature that we can check, then it must be valid.
2022
+
2023
+ In addition to this option, you need to enable signature
20552024 verification for the corresponding kernel image type being
20562025 loaded in order for this to work.
20572026
2027
+config KEXEC_SIG_FORCE
2028
+ bool "Require a valid signature in kexec_file_load() syscall"
2029
+ depends on KEXEC_SIG
2030
+ help
2031
+ This option makes kernel signature verification mandatory for
2032
+ the kexec_file_load() syscall.
2033
+
20582034 config KEXEC_BZIMAGE_VERIFY_SIG
20592035 bool "Enable bzImage signature verification support"
2060
- depends on KEXEC_VERIFY_SIG
2036
+ depends on KEXEC_SIG
20612037 depends on SIGNED_PE_FILE_VERIFICATION
20622038 select SYSTEM_TRUSTED_KEYRING
2063
- ---help---
2039
+ help
20642040 Enable bzImage signature verification support.
20652041
20662042 config CRASH_DUMP
20672043 bool "kernel crash dumps"
20682044 depends on X86_64 || (X86_32 && HIGHMEM)
2069
- ---help---
2045
+ help
20702046 Generate crash dump after being started by kexec.
20712047 This should be normally only set in special crash dump kernels
20722048 which are loaded in the main kernel with kexec-tools into
....@@ -2075,19 +2051,19 @@
20752051 to a memory address not used by the main kernel or BIOS using
20762052 PHYSICAL_START, or it must be built as a relocatable image
20772053 (CONFIG_RELOCATABLE=y).
2078
- For more details see Documentation/kdump/kdump.txt
2054
+ For more details see Documentation/admin-guide/kdump/kdump.rst
20792055
20802056 config KEXEC_JUMP
20812057 bool "kexec jump"
20822058 depends on KEXEC && HIBERNATION
2083
- ---help---
2059
+ help
20842060 Jump between original kernel and kexeced kernel and invoke
20852061 code in physical address mode via KEXEC
20862062
20872063 config PHYSICAL_START
20882064 hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
20892065 default "0x1000000"
2090
- ---help---
2066
+ help
20912067 This gives the physical address where the kernel is loaded.
20922068
20932069 If kernel is a not relocatable (CONFIG_RELOCATABLE=n) then
....@@ -2112,7 +2088,7 @@
21122088 the reserved region. In other words, it can be set based on
21132089 the "X" value as specified in the "crashkernel=YM@XM"
21142090 command line boot parameter passed to the panic-ed
2115
- kernel. Please take a look at Documentation/kdump/kdump.txt
2091
+ kernel. Please take a look at Documentation/admin-guide/kdump/kdump.rst
21162092 for more details about crash dumps.
21172093
21182094 Usage of bzImage for capturing the crash dump is recommended as
....@@ -2128,7 +2104,7 @@
21282104 config RELOCATABLE
21292105 bool "Build a relocatable kernel"
21302106 default y
2131
- ---help---
2107
+ help
21322108 This builds a kernel image that retains relocation information
21332109 so it can be loaded someplace besides the default 1MB.
21342110 The relocations tend to make the kernel binary about 10% larger,
....@@ -2146,7 +2122,7 @@
21462122 bool "Randomize the address of the kernel image (KASLR)"
21472123 depends on RELOCATABLE
21482124 default y
2149
- ---help---
2125
+ help
21502126 In support of Kernel Address Space Layout Randomization (KASLR),
21512127 this randomizes the physical address at which the kernel image
21522128 is decompressed and the virtual address where the kernel
....@@ -2187,7 +2163,7 @@
21872163 default "0x200000"
21882164 range 0x2000 0x1000000 if X86_32
21892165 range 0x200000 0x1000000 if X86_64
2190
- ---help---
2166
+ help
21912167 This value puts the alignment restrictions on physical address
21922168 where kernel is loaded and run from. Kernel is compiled for an
21932169 address which meets above alignment restriction.
....@@ -2211,7 +2187,7 @@
22112187
22122188 config DYNAMIC_MEMORY_LAYOUT
22132189 bool
2214
- ---help---
2190
+ help
22152191 This option makes base addresses of vmalloc and vmemmap as well as
22162192 __PAGE_OFFSET movable during boot.
22172193
....@@ -2221,7 +2197,7 @@
22212197 depends on RANDOMIZE_BASE
22222198 select DYNAMIC_MEMORY_LAYOUT
22232199 default RANDOMIZE_BASE
2224
- ---help---
2200
+ help
22252201 Randomizes the base virtual address of kernel memory sections
22262202 (physical memory mapping, vmalloc & vmemmap). This security feature
22272203 makes exploits relying on predictable memory locations less reliable.
....@@ -2240,7 +2216,7 @@
22402216 default "0x0"
22412217 range 0x1 0x40 if MEMORY_HOTPLUG
22422218 range 0x0 0x40
2243
- ---help---
2219
+ help
22442220 Define the padding in terabytes added to the existing physical
22452221 memory size during kernel memory randomization. It is useful
22462222 for memory hotplug support but reduces the entropy available for
....@@ -2254,9 +2230,8 @@
22542230
22552231 config BOOTPARAM_HOTPLUG_CPU0
22562232 bool "Set default setting of cpu0_hotpluggable"
2257
- default n
22582233 depends on HOTPLUG_CPU
2259
- ---help---
2234
+ help
22602235 Set whether default state of cpu0_hotpluggable is on or off.
22612236
22622237 Say Y here to enable CPU0 hotplug by default. If this switch
....@@ -2285,7 +2260,7 @@
22852260 def_bool n
22862261 prompt "Debug CPU0 hotplug"
22872262 depends on HOTPLUG_CPU
2288
- ---help---
2263
+ help
22892264 Enabling this option offlines CPU0 (if CPU0 can be offlined) as
22902265 soon as possible and boots up userspace with CPU0 offlined. User
22912266 can online CPU0 back after boot time.
....@@ -2300,7 +2275,7 @@
23002275 def_bool n
23012276 prompt "Disable the 32-bit vDSO (needed for glibc 2.3.3)"
23022277 depends on COMPAT_32
2303
- ---help---
2278
+ help
23042279 Certain buggy versions of glibc will crash if they are
23052280 presented with a 32-bit vDSO that is not mapped at the address
23062281 indicated in its segment table.
....@@ -2324,7 +2299,7 @@
23242299 choice
23252300 prompt "vsyscall table for legacy applications"
23262301 depends on X86_64
2327
- default LEGACY_VSYSCALL_EMULATE
2302
+ default LEGACY_VSYSCALL_XONLY
23282303 help
23292304 Legacy user code that does not know how to find the vDSO expects
23302305 to be able to issue three syscalls by calling fixed addresses in
....@@ -2332,23 +2307,38 @@
23322307 it can be used to assist security vulnerability exploitation.
23332308
23342309 This setting can be changed at boot time via the kernel command
2335
- line parameter vsyscall=[emulate|none].
2310
+ line parameter vsyscall=[emulate|xonly|none].
23362311
23372312 On a system with recent enough glibc (2.14 or newer) and no
23382313 static binaries, you can say None without a performance penalty
23392314 to improve security.
23402315
2341
- If unsure, select "Emulate".
2316
+ If unsure, select "Emulate execution only".
23422317
23432318 config LEGACY_VSYSCALL_EMULATE
2344
- bool "Emulate"
2319
+ bool "Full emulation"
23452320 help
2346
- The kernel traps and emulates calls into the fixed
2347
- vsyscall address mapping. This makes the mapping
2348
- non-executable, but it still contains known contents,
2349
- which could be used in certain rare security vulnerability
2350
- exploits. This configuration is recommended when userspace
2351
- still uses the vsyscall area.
2321
+ The kernel traps and emulates calls into the fixed vsyscall
2322
+ address mapping. This makes the mapping non-executable, but
2323
+ it still contains readable known contents, which could be
2324
+ used in certain rare security vulnerability exploits. This
2325
+ configuration is recommended when using legacy userspace
2326
+ that still uses vsyscalls along with legacy binary
2327
+ instrumentation tools that require code to be readable.
2328
+
2329
+ An example of this type of legacy userspace is running
2330
+ Pin on an old binary that still uses vsyscalls.
2331
+
2332
+ config LEGACY_VSYSCALL_XONLY
2333
+ bool "Emulate execution only"
2334
+ help
2335
+ The kernel traps and emulates calls into the fixed vsyscall
2336
+ address mapping and does not allow reads. This
2337
+ configuration is recommended when userspace might use the
2338
+ legacy vsyscall area but support for legacy binary
2339
+ instrumentation of legacy code is not needed. It mitigates
2340
+ certain uses of the vsyscall area as an ASLR-bypassing
2341
+ buffer.
23522342
23532343 config LEGACY_VSYSCALL_NONE
23542344 bool "None"
....@@ -2363,7 +2353,7 @@
23632353
23642354 config CMDLINE_BOOL
23652355 bool "Built-in kernel command line"
2366
- ---help---
2356
+ help
23672357 Allow for specifying boot arguments to the kernel at
23682358 build time. On some systems (e.g. embedded ones), it is
23692359 necessary or convenient to provide some or all of the
....@@ -2381,7 +2371,7 @@
23812371 string "Built-in kernel command string"
23822372 depends on CMDLINE_BOOL
23832373 default ""
2384
- ---help---
2374
+ help
23852375 Enter arguments here that should be compiled into the kernel
23862376 image and used at boot time. If the boot loader provides a
23872377 command line at boot time, it is appended to this string to
....@@ -2396,8 +2386,8 @@
23962386
23972387 config CMDLINE_OVERRIDE
23982388 bool "Built-in command line overrides boot loader arguments"
2399
- depends on CMDLINE_BOOL
2400
- ---help---
2389
+ depends on CMDLINE_BOOL && CMDLINE != ""
2390
+ help
24012391 Set this option to 'Y' to have the kernel ignore the boot loader
24022392 command line, and use ONLY the built-in command line.
24032393
....@@ -2407,7 +2397,7 @@
24072397 config MODIFY_LDT_SYSCALL
24082398 bool "Enable the LDT (local descriptor table)" if EXPERT
24092399 default y
2410
- ---help---
2400
+ help
24112401 Linux can allow user programs to install a per-process x86
24122402 Local Descriptor Table (LDT) using the modify_ldt(2) system
24132403 call. This is required to run 16-bit or segmented code such as
....@@ -2423,6 +2413,88 @@
24232413 source "kernel/livepatch/Kconfig"
24242414
24252415 endmenu
2416
+
2417
+config CC_HAS_SLS
2418
+ def_bool $(cc-option,-mharden-sls=all)
2419
+
2420
+config CC_HAS_RETURN_THUNK
2421
+ def_bool $(cc-option,-mfunction-return=thunk-extern)
2422
+
2423
+menuconfig SPECULATION_MITIGATIONS
2424
+ bool "Mitigations for speculative execution vulnerabilities"
2425
+ default y
2426
+ help
2427
+ Say Y here to enable options which enable mitigations for
2428
+ speculative execution hardware vulnerabilities.
2429
+
2430
+ If you say N, all mitigations will be disabled. You really
2431
+ should know what you are doing to say so.
2432
+
2433
+if SPECULATION_MITIGATIONS
2434
+
2435
+config PAGE_TABLE_ISOLATION
2436
+ bool "Remove the kernel mapping in user mode"
2437
+ default y
2438
+ depends on (X86_64 || X86_PAE)
2439
+ help
2440
+ This feature reduces the number of hardware side channels by
2441
+ ensuring that the majority of kernel addresses are not mapped
2442
+ into userspace.
2443
+
2444
+ See Documentation/x86/pti.rst for more details.
2445
+
2446
+config RETPOLINE
2447
+ bool "Avoid speculative indirect branches in kernel"
2448
+ default y
2449
+ help
2450
+ Compile kernel with the retpoline compiler options to guard against
2451
+ kernel-to-user data leaks by avoiding speculative indirect
2452
+ branches. Requires a compiler with -mindirect-branch=thunk-extern
2453
+ support for full protection. The kernel may run slower.
2454
+
2455
+config RETHUNK
2456
+ bool "Enable return-thunks"
2457
+ depends on RETPOLINE && CC_HAS_RETURN_THUNK
2458
+ default y if X86_64
2459
+ help
2460
+ Compile the kernel with the return-thunks compiler option to guard
2461
+ against kernel-to-user data leaks by avoiding return speculation.
2462
+ Requires a compiler with -mfunction-return=thunk-extern
2463
+ support for full protection. The kernel may run slower.
2464
+
2465
+config CPU_UNRET_ENTRY
2466
+ bool "Enable UNRET on kernel entry"
2467
+ depends on CPU_SUP_AMD && RETHUNK && X86_64
2468
+ default y
2469
+ help
2470
+ Compile the kernel with support for the retbleed=unret mitigation.
2471
+
2472
+config CPU_IBPB_ENTRY
2473
+ bool "Enable IBPB on kernel entry"
2474
+ depends on CPU_SUP_AMD && X86_64
2475
+ default y
2476
+ help
2477
+ Compile the kernel with support for the retbleed=ibpb mitigation.
2478
+
2479
+config CPU_IBRS_ENTRY
2480
+ bool "Enable IBRS on kernel entry"
2481
+ depends on CPU_SUP_INTEL && X86_64
2482
+ default y
2483
+ help
2484
+ Compile the kernel with support for the spectre_v2=ibrs mitigation.
2485
+ This mitigates both spectre_v2 and retbleed at great cost to
2486
+ performance.
2487
+
2488
+config SLS
2489
+ bool "Mitigate Straight-Line-Speculation"
2490
+ depends on CC_HAS_SLS && X86_64
2491
+ default n
2492
+ help
2493
+ Compile the kernel with straight-line-speculation options to guard
2494
+ against straight line speculation. The kernel image might be slightly
2495
+ larger.
2496
+
2497
+endif
24262498
24272499 config ARCH_HAS_ADD_PAGES
24282500 def_bool y
....@@ -2456,7 +2528,7 @@
24562528
24572529 config ARCH_HIBERNATION_HEADER
24582530 def_bool y
2459
- depends on X86_64 && HIBERNATION
2531
+ depends on HIBERNATION
24602532
24612533 source "kernel/power/Kconfig"
24622534
....@@ -2471,7 +2543,7 @@
24712543 menuconfig APM
24722544 tristate "APM (Advanced Power Management) BIOS support"
24732545 depends on X86_32 && PM_SLEEP
2474
- ---help---
2546
+ help
24752547 APM is a BIOS specification for saving power using several different
24762548 techniques. This is mostly useful for battery powered laptops with
24772549 APM compliant BIOSes. If you say Y here, the system time will be
....@@ -2486,7 +2558,7 @@
24862558 machines with more than one CPU.
24872559
24882560 In order to use APM, you will need supporting software. For location
2489
- and more information, read <file:Documentation/power/apm-acpi.txt>
2561
+ and more information, read <file:Documentation/power/apm-acpi.rst>
24902562 and the Battery Powered Linux mini-HOWTO, available from
24912563 <http://www.tldp.org/docs.html#howto>.
24922564
....@@ -2531,14 +2603,14 @@
25312603
25322604 config APM_IGNORE_USER_SUSPEND
25332605 bool "Ignore USER SUSPEND"
2534
- ---help---
2606
+ help
25352607 This option will ignore USER SUSPEND requests. On machines with a
25362608 compliant APM BIOS, you want to say N. However, on the NEC Versa M
25372609 series notebooks, it is necessary to say Y because of a BIOS bug.
25382610
25392611 config APM_DO_ENABLE
25402612 bool "Enable PM at boot time"
2541
- ---help---
2613
+ help
25422614 Enable APM features at boot time. From page 36 of the APM BIOS
25432615 specification: "When disabled, the APM BIOS does not automatically
25442616 power manage devices, enter the Standby State, enter the Suspend
....@@ -2556,7 +2628,7 @@
25562628 config APM_CPU_IDLE
25572629 depends on CPU_IDLE
25582630 bool "Make CPU Idle calls when idle"
2559
- ---help---
2631
+ help
25602632 Enable calls to APM CPU Idle/CPU Busy inside the kernel's idle loop.
25612633 On some machines, this can activate improved power savings, such as
25622634 a slowed CPU clock rate, when the machine is idle. These idle calls
....@@ -2567,7 +2639,7 @@
25672639
25682640 config APM_DISPLAY_BLANK
25692641 bool "Enable console blanking using APM"
2570
- ---help---
2642
+ help
25712643 Enable console blanking using the APM. Some laptops can use this to
25722644 turn off the LCD backlight when the screen blanker of the Linux
25732645 virtual console blanks the screen. Note that this is only used by
....@@ -2580,7 +2652,7 @@
25802652
25812653 config APM_ALLOW_INTS
25822654 bool "Allow interrupts during APM BIOS calls"
2583
- ---help---
2655
+ help
25842656 Normally we disable external interrupts while we are making calls to
25852657 the APM BIOS as a measure to lessen the effects of a badly behaving
25862658 BIOS implementation. The BIOS should reenable interrupts if it
....@@ -2601,20 +2673,11 @@
26012673
26022674 menu "Bus options (PCI etc.)"
26032675
2604
-config PCI
2605
- bool "PCI support"
2606
- default y
2607
- ---help---
2608
- Find out whether you have a PCI motherboard. PCI is the name of a
2609
- bus system, i.e. the way the CPU talks to the other stuff inside
2610
- your box. Other bus systems are ISA, EISA, MicroChannel (MCA) or
2611
- VESA. If you have PCI, say Y, otherwise N.
2612
-
26132676 choice
26142677 prompt "PCI access mode"
26152678 depends on X86_32 && PCI
26162679 default PCI_GOANY
2617
- ---help---
2680
+ help
26182681 On PCI systems, the BIOS can be used to detect the PCI devices and
26192682 determine their configuration. However, some old PCI motherboards
26202683 have BIOS bugs and may crash if this is done. Also, some embedded
....@@ -2671,10 +2734,6 @@
26712734 depends on PCI && XEN
26722735 select SWIOTLB_XEN
26732736
2674
-config PCI_DOMAINS
2675
- def_bool y
2676
- depends on PCI
2677
-
26782737 config MMCONF_FAM10H
26792738 def_bool y
26802739 depends on X86_64 && PCI_MMCONFIG && ACPI
....@@ -2691,8 +2750,6 @@
26912750 is known to be incomplete.
26922751
26932752 You should say N unless you know you need this.
2694
-
2695
-source "drivers/pci/Kconfig"
26962753
26972754 config ISA_BUS
26982755 bool "ISA bus support on modern systems" if EXPERT
....@@ -2717,34 +2774,16 @@
27172774
27182775 config ISA
27192776 bool "ISA support"
2720
- ---help---
2777
+ help
27212778 Find out whether you have ISA slots on your motherboard. ISA is the
27222779 name of a bus system, i.e. the way the CPU talks to the other stuff
27232780 inside your box. Other bus systems are PCI, EISA, MicroChannel
27242781 (MCA) or VESA. ISA is an older system, now being displaced by PCI;
27252782 newer boards don't support it. If you have ISA, say Y, otherwise N.
27262783
2727
-config EISA
2728
- bool "EISA support"
2729
- depends on ISA
2730
- ---help---
2731
- The Extended Industry Standard Architecture (EISA) bus was
2732
- developed as an open alternative to the IBM MicroChannel bus.
2733
-
2734
- The EISA bus provided some of the features of the IBM MicroChannel
2735
- bus while maintaining backward compatibility with cards made for
2736
- the older ISA bus. The EISA bus saw limited use between 1988 and
2737
- 1995 when it was made obsolete by the PCI bus.
2738
-
2739
- Say Y here if you are building a kernel for an EISA-based machine.
2740
-
2741
- Otherwise, say N.
2742
-
2743
-source "drivers/eisa/Kconfig"
2744
-
27452784 config SCx200
27462785 tristate "NatSemi SCx200 support"
2747
- ---help---
2786
+ help
27482787 This provides basic support for National Semiconductor's
27492788 (now AMD's) Geode processors. The driver probes for the
27502789 PCI-IDs of several on-chip devices, so its a good dependency
....@@ -2756,7 +2795,7 @@
27562795 tristate "NatSemi SCx200 27MHz High-Resolution Timer Support"
27572796 depends on SCx200
27582797 default y
2759
- ---help---
2798
+ help
27602799 This driver provides a clocksource built upon the on-chip
27612800 27MHz high-resolution timer. Its also a workaround for
27622801 NSC Geode SC-1100's buggy TSC, which loses time when the
....@@ -2770,20 +2809,21 @@
27702809 select OF
27712810 select OF_PROMTREE
27722811 select IRQ_DOMAIN
2773
- ---help---
2812
+ select OLPC_EC
2813
+ help
27742814 Add support for detecting the unique features of the OLPC
27752815 XO hardware.
27762816
27772817 config OLPC_XO1_PM
27782818 bool "OLPC XO-1 Power Management"
27792819 depends on OLPC && MFD_CS5535=y && PM_SLEEP
2780
- ---help---
2820
+ help
27812821 Add support for poweroff and suspend of the OLPC XO-1 laptop.
27822822
27832823 config OLPC_XO1_RTC
27842824 bool "OLPC XO-1 Real Time Clock"
27852825 depends on OLPC_XO1_PM && RTC_DRV_CMOS
2786
- ---help---
2826
+ help
27872827 Add support for the XO-1 real time clock, which can be used as a
27882828 programmable wakeup source.
27892829
....@@ -2792,7 +2832,7 @@
27922832 depends on OLPC && OLPC_XO1_PM && GPIO_CS5535=y
27932833 depends on INPUT=y
27942834 select POWER_SUPPLY
2795
- ---help---
2835
+ help
27962836 Add support for SCI-based features of the OLPC XO-1 laptop:
27972837 - EC-driven system wakeups
27982838 - Power button
....@@ -2805,7 +2845,7 @@
28052845 bool "OLPC XO-1.5 SCI extras"
28062846 depends on OLPC && ACPI
28072847 select POWER_SUPPLY
2808
- ---help---
2848
+ help
28092849 Add support for SCI-based features of the OLPC XO-1.5 laptop:
28102850 - EC-driven system wakeups
28112851 - AC adapter status updates
....@@ -2814,7 +2854,7 @@
28142854 config ALIX
28152855 bool "PCEngines ALIX System Support (LED setup)"
28162856 select GPIOLIB
2817
- ---help---
2857
+ help
28182858 This option enables system support for the PCEngines ALIX.
28192859 At present this just sets up LEDs for GPIO control on
28202860 ALIX2/3/6 boards. However, other system specific setup should
....@@ -2828,14 +2868,14 @@
28282868 config NET5501
28292869 bool "Soekris Engineering net5501 System Support (LEDS, GPIO, etc)"
28302870 select GPIOLIB
2831
- ---help---
2871
+ help
28322872 This option enables system support for the Soekris Engineering net5501.
28332873
28342874 config GEOS
28352875 bool "Traverse Technologies GEOS System Support (LEDS, GPIO, etc)"
28362876 select GPIOLIB
28372877 depends on DMI
2838
- ---help---
2878
+ help
28392879 This option enables system support for the Traverse Technologies GEOS.
28402880
28412881 config TS5500
....@@ -2844,7 +2884,7 @@
28442884 select CHECK_SIGNATURE
28452885 select NEW_LEDS
28462886 select LEDS_CLASS
2847
- ---help---
2887
+ help
28482888 This option enables system support for the Technologic Systems TS-5500.
28492889
28502890 endif # X86_32
....@@ -2852,18 +2892,6 @@
28522892 config AMD_NB
28532893 def_bool y
28542894 depends on CPU_SUP_AMD && PCI
2855
-
2856
-source "drivers/pcmcia/Kconfig"
2857
-
2858
-config RAPIDIO
2859
- tristate "RapidIO support"
2860
- depends on PCI
2861
- default n
2862
- help
2863
- If enabled this option will include drivers and the core
2864
- infrastructure code to support RapidIO interconnect devices.
2865
-
2866
-source "drivers/rapidio/Kconfig"
28672895
28682896 config X86_SYSFB
28692897 bool "Mark VGA/VBE/EFI FB as generic system framebuffer"
....@@ -2903,7 +2931,7 @@
29032931 select BINFMT_ELF
29042932 select COMPAT_BINFMT_ELF
29052933 select COMPAT_OLD_SIGACTION
2906
- ---help---
2934
+ help
29072935 Include code to run legacy 32-bit programs under a
29082936 64-bit kernel. You should likely turn this on, unless you're
29092937 100% sure that you don't have any 32-bit programs left.
....@@ -2911,13 +2939,19 @@
29112939 config IA32_AOUT
29122940 tristate "IA32 a.out support"
29132941 depends on IA32_EMULATION
2914
- ---help---
2942
+ depends on BROKEN
2943
+ help
29152944 Support old a.out binaries in the 32bit emulation.
29162945
29172946 config X86_X32
29182947 bool "x32 ABI for 64-bit mode"
29192948 depends on X86_64
2920
- ---help---
2949
+ # llvm-objcopy does not convert x86_64 .note.gnu.property or
2950
+ # compressed debug sections to x86_x32 properly:
2951
+ # https://github.com/ClangBuiltLinux/linux/issues/514
2952
+ # https://github.com/ClangBuiltLinux/linux/issues/1141
2953
+ depends on $(success,$(OBJCOPY) --version | head -n1 | grep -qv llvm)
2954
+ help
29212955 Include code to run binaries for the x32 native 32-bit ABI
29222956 for 64-bit processors. An x32 process gets access to the
29232957 full 64-bit register file and wide data path while leaving
....@@ -2953,17 +2987,8 @@
29532987 def_bool y
29542988 depends on X86_32
29552989
2956
-config X86_DEV_DMA_OPS
2957
- bool
2958
- depends on X86_64 || STA2X11
2959
-
2960
-config X86_DMA_REMAP
2961
- bool
2962
- depends on STA2X11
2963
-
2964
-config HAVE_GENERIC_GUP
2965
- def_bool y
2966
-
29672990 source "drivers/firmware/Kconfig"
29682991
29692992 source "arch/x86/kvm/Kconfig"
2993
+
2994
+source "arch/x86/Kconfig.assembler"