Kconfig 93 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
Sam Ravnborg's avatar
Sam Ravnborg committed
2 3
# Select 32 or 64 bit
config 64BIT
4
	bool "64-bit kernel" if ARCH = "x86"
5
	default ARCH != "i386"
Ingo Molnar's avatar
Ingo Molnar committed
6
	---help---
Sam Ravnborg's avatar
Sam Ravnborg committed
7 8 9 10
	  Say yes to build a 64-bit kernel - formerly known as x86_64
	  Say no to build a 32-bit kernel - formerly known as i386

config X86_32
11 12
	def_bool y
	depends on !64BIT
13 14 15 16 17 18 19 20
	# Options that are inherently 32-bit kernel only:
	select ARCH_WANT_IPC_PARSE_VERSION
	select CLKSRC_I8253
	select CLONE_BACKWARDS
	select HAVE_AOUT
	select HAVE_GENERIC_DMA_COHERENT
	select MODULES_USE_ELF_REL
	select OLD_SIGACTION
Sam Ravnborg's avatar
Sam Ravnborg committed
21 22

config X86_64
23 24
	def_bool y
	depends on 64BIT
25
	# Options that are inherently 64-bit kernel only:
26
	select ARCH_HAS_GIGANTIC_PAGE if (MEMORY_ISOLATION && COMPACTION) || CMA
27 28 29 30 31
	select ARCH_SUPPORTS_INT128
	select ARCH_USE_CMPXCHG_LOCKREF
	select HAVE_ARCH_SOFT_DIRTY
	select MODULES_USE_ELF_RELA
	select X86_DEV_DMA_OPS
32

33 34 35 36 37 38
#
# Arch settings
#
# ( Note that options that are marked 'if X86_64' could in principle be
#   ported to 32-bit as well. )
#
39
config X86
40
	def_bool y
41 42 43
	#
	# Note: keep this list sorted alphabetically
	#
44 45 46 47 48
	select ACPI_LEGACY_TABLES_LOOKUP	if ACPI
	select ACPI_SYSTEM_POWER_STATES_SUPPORT	if ACPI
	select ANON_INODES
	select ARCH_CLOCKSOURCE_DATA
	select ARCH_DISCARD_MEMBLOCK
49
	select ARCH_HAS_ACPI_TABLE_UPGRADE	if ACPI
50
	select ARCH_HAS_DEBUG_VIRTUAL
51
	select ARCH_HAS_DEVMEM_IS_ALLOWED
52
	select ARCH_HAS_ELF_RANDOMIZE
53
	select ARCH_HAS_FAST_MULTIPLIER
54
	select ARCH_HAS_FORTIFY_SOURCE
55
	select ARCH_HAS_GCOV_PROFILE_ALL
Dmitry Vyukov's avatar
Dmitry Vyukov committed
56
	select ARCH_HAS_KCOV			if X86_64
57
	select ARCH_HAS_PMEM_API		if X86_64
58
	# Causing hangs/crashes, see the commit that added this change for details.
59
	select ARCH_HAS_REFCOUNT
60
	select ARCH_HAS_UACCESS_FLUSHCACHE	if X86_64
61
	select ARCH_HAS_SET_MEMORY
62
	select ARCH_HAS_SG_CHAIN
63 64
	select ARCH_HAS_STRICT_KERNEL_RWX
	select ARCH_HAS_STRICT_MODULE_RWX
65
	select ARCH_HAS_UBSAN_SANITIZE_ALL
66
	select ARCH_HAS_ZONE_DEVICE		if X86_64
67 68
	select ARCH_HAVE_NMI_SAFE_CMPXCHG
	select ARCH_MIGHT_HAVE_ACPI_PDC		if ACPI
69
	select ARCH_MIGHT_HAVE_PC_PARPORT
70
	select ARCH_MIGHT_HAVE_PC_SERIO
71
	select ARCH_SUPPORTS_ATOMIC_RMW
72
	select ARCH_SUPPORTS_DEFERRED_STRUCT_PAGE_INIT
73 74 75 76
	select ARCH_SUPPORTS_NUMA_BALANCING	if X86_64
	select ARCH_USE_BUILTIN_BSWAP
	select ARCH_USE_QUEUED_RWLOCKS
	select ARCH_USE_QUEUED_SPINLOCKS
77
	select ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH
78
	select ARCH_WANTS_DYNAMIC_TASK_STRUCT
79
	select ARCH_WANTS_THP_SWAP		if X86_64
80 81 82 83 84
	select BUILDTIME_EXTABLE_SORT
	select CLKEVT_I8253
	select CLOCKSOURCE_VALIDATE_LAST_CYCLE
	select CLOCKSOURCE_WATCHDOG
	select DCACHE_WORD_ACCESS
85 86
	select EDAC_ATOMIC_SCRUB
	select EDAC_SUPPORT
87 88 89 90 91
	select GENERIC_CLOCKEVENTS
	select GENERIC_CLOCKEVENTS_BROADCAST	if X86_64 || (X86_32 && X86_LOCAL_APIC)
	select GENERIC_CLOCKEVENTS_MIN_ADJUST
	select GENERIC_CMOS_UPDATE
	select GENERIC_CPU_AUTOPROBE
Mark Salter's avatar
Mark Salter committed
92
	select GENERIC_EARLY_IOREMAP
93 94
	select GENERIC_FIND_FIRST_BIT
	select GENERIC_IOMAP
95
	select GENERIC_IRQ_EFFECTIVE_AFF_MASK	if SMP
96
	select GENERIC_IRQ_MATRIX_ALLOCATOR	if X86_LOCAL_APIC
97
	select GENERIC_IRQ_MIGRATION		if SMP
98
	select GENERIC_IRQ_PROBE
99
	select GENERIC_IRQ_RESERVATION_MODE
100 101 102 103 104 105
	select GENERIC_IRQ_SHOW
	select GENERIC_PENDING_IRQ		if SMP
	select GENERIC_SMP_IDLE_THREAD
	select GENERIC_STRNCPY_FROM_USER
	select GENERIC_STRNLEN_USER
	select GENERIC_TIME_VSYSCALL
106
	select HARDLOCKUP_CHECK_TIMESTAMP	if X86_64
107 108 109 110 111 112 113 114
	select HAVE_ACPI_APEI			if ACPI
	select HAVE_ACPI_APEI_NMI		if ACPI
	select HAVE_ALIGNED_STRUCT_PAGE		if SLUB
	select HAVE_ARCH_AUDITSYSCALL
	select HAVE_ARCH_HUGE_VMAP		if X86_64 || X86_PAE
	select HAVE_ARCH_JUMP_LABEL
	select HAVE_ARCH_KASAN			if X86_64 && SPARSEMEM_VMEMMAP
	select HAVE_ARCH_KGDB
115 116
	select HAVE_ARCH_MMAP_RND_BITS		if MMU
	select HAVE_ARCH_MMAP_RND_COMPAT_BITS	if MMU && COMPAT
117
	select HAVE_ARCH_COMPAT_MMAP_BASES	if MMU && COMPAT
118 119 120
	select HAVE_ARCH_SECCOMP_FILTER
	select HAVE_ARCH_TRACEHOOK
	select HAVE_ARCH_TRANSPARENT_HUGEPAGE
121
	select HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD if X86_64
122
	select HAVE_ARCH_VMAP_STACK		if X86_64
123
	select HAVE_ARCH_WITHIN_STACK_FRAMES
124 125 126 127
	select HAVE_CC_STACKPROTECTOR
	select HAVE_CMPXCHG_DOUBLE
	select HAVE_CMPXCHG_LOCAL
	select HAVE_CONTEXT_TRACKING		if X86_64
128
	select HAVE_COPY_THREAD_TLS
129
	select HAVE_C_RECORDMCOUNT
130 131 132 133
	select HAVE_DEBUG_KMEMLEAK
	select HAVE_DEBUG_STACKOVERFLOW
	select HAVE_DMA_API_DEBUG
	select HAVE_DMA_CONTIGUOUS
134
	select HAVE_DYNAMIC_FTRACE
135
	select HAVE_DYNAMIC_FTRACE_WITH_REGS
136
	select HAVE_EBPF_JIT			if X86_64
137
	select HAVE_EFFICIENT_UNALIGNED_ACCESS
Jiri Slaby's avatar
Jiri Slaby committed
138
	select HAVE_EXIT_THREAD
139
	select HAVE_FENTRY			if X86_64 || DYNAMIC_FTRACE
140 141 142
	select HAVE_FTRACE_MCOUNT_RECORD
	select HAVE_FUNCTION_GRAPH_TRACER
	select HAVE_FUNCTION_TRACER
Emese Revfy's avatar
Emese Revfy committed
143
	select HAVE_GCC_PLUGINS
144 145 146 147 148
	select HAVE_HW_BREAKPOINT
	select HAVE_IDE
	select HAVE_IOREMAP_PROT
	select HAVE_IRQ_EXIT_ON_IRQ_STACK	if X86_64
	select HAVE_IRQ_TIME_ACCOUNTING
149
	select HAVE_KERNEL_BZIP2
150 151
	select HAVE_KERNEL_GZIP
	select HAVE_KERNEL_LZ4
152
	select HAVE_KERNEL_LZMA
153
	select HAVE_KERNEL_LZO
154 155 156 157 158 159 160 161
	select HAVE_KERNEL_XZ
	select HAVE_KPROBES
	select HAVE_KPROBES_ON_FTRACE
	select HAVE_KRETPROBES
	select HAVE_KVM
	select HAVE_LIVEPATCH			if X86_64
	select HAVE_MEMBLOCK
	select HAVE_MEMBLOCK_NODE_MAP
162
	select HAVE_MIXED_BREAKPOINTS_REGS
163
	select HAVE_MOD_ARCH_SPECIFIC
164
	select HAVE_NMI
165 166 167 168
	select HAVE_OPROFILE
	select HAVE_OPTPROBES
	select HAVE_PCSPKR_PLATFORM
	select HAVE_PERF_EVENTS
169
	select HAVE_PERF_EVENTS_NMI
170
	select HAVE_HARDLOCKUP_DETECTOR_PERF	if PERF_EVENTS && HAVE_PERF_EVENTS_NMI
171
	select HAVE_PERF_REGS
172
	select HAVE_PERF_USER_STACK_DUMP
173
	select HAVE_RCU_TABLE_FREE
174
	select HAVE_REGS_AND_STACK_ACCESS_API
175
	select HAVE_RELIABLE_STACKTRACE		if X86_64 && UNWINDER_FRAME_POINTER && STACK_VALIDATION
176
	select HAVE_STACK_VALIDATION		if X86_64
177 178
	select HAVE_SYSCALL_TRACEPOINTS
	select HAVE_UNSTABLE_SCHED_CLOCK
179
	select HAVE_USER_RETURN_NOTIFIER
180
	select IRQ_FORCED_THREADING
181
	select PCI_LOCKLESS_CONFIG
182
	select PERF_EVENTS
183
	select RTC_LIB
184
	select RTC_MC146818_LIB
185
	select SPARSE_IRQ
186
	select SRCU
187
	select SYSCTL_EXCEPTION_TRACE
188
	select THREAD_INFO_IN_TASK
189 190 191
	select USER_STACKTRACE_SUPPORT
	select VIRT_TO_BUS
	select X86_FEATURE_NAMES		if PROC_FS
192

193
config INSTRUCTION_DECODER
194 195
	def_bool y
	depends on KPROBES || PERF_EVENTS || UPROBES
196

197 198 199 200 201
config OUTPUT_FORMAT
	string
	default "elf32-i386" if X86_32
	default "elf64-x86-64" if X86_64

202
config ARCH_DEFCONFIG
203
	string
204 205
	default "arch/x86/configs/i386_defconfig" if X86_32
	default "arch/x86/configs/x86_64_defconfig" if X86_64
206

207
config LOCKDEP_SUPPORT
208
	def_bool y
209 210

config STACKTRACE_SUPPORT
211
	def_bool y
212 213

config MMU
214
	def_bool y
215

216 217 218 219 220 221 222 223 224 225 226 227 228 229
config ARCH_MMAP_RND_BITS_MIN
	default 28 if 64BIT
	default 8

config ARCH_MMAP_RND_BITS_MAX
	default 32 if 64BIT
	default 16

config ARCH_MMAP_RND_COMPAT_BITS_MIN
	default 8

config ARCH_MMAP_RND_COMPAT_BITS_MAX
	default 16

230 231 232
config SBUS
	bool

233
config NEED_DMA_MAP_STATE
234
	def_bool y
235
	depends on X86_64 || INTEL_IOMMU || DMA_API_DEBUG || SWIOTLB
236

237
config NEED_SG_DMA_LENGTH
238
	def_bool y
239

240
config GENERIC_ISA_DMA
241 242
	def_bool y
	depends on ISA_DMA_API
243 244

config GENERIC_BUG
245
	def_bool y
246
	depends on BUG
247 248 249 250
	select GENERIC_BUG_RELATIVE_POINTERS if X86_64

config GENERIC_BUG_RELATIVE_POINTERS
	bool
251 252

config GENERIC_HWEIGHT
253
	def_bool y
254 255

config ARCH_MAY_HAVE_PC_FDC
256 257
	def_bool y
	depends on ISA_DMA_API
258

259
config RWSEM_XCHGADD_ALGORITHM
260
	def_bool y
261 262 263 264

config GENERIC_CALIBRATE_DELAY
	def_bool y

265 266 267
config ARCH_HAS_CPU_RELAX
	def_bool y

268 269 270
config ARCH_HAS_CACHE_LINE_SIZE
	def_bool y

271
config HAVE_SETUP_PER_CPU_AREA
272
	def_bool y
273

274 275 276 277
config NEED_PER_CPU_EMBED_FIRST_CHUNK
	def_bool y

config NEED_PER_CPU_PAGE_FIRST_CHUNK
278 279
	def_bool y

280 281 282
config ARCH_HIBERNATION_POSSIBLE
	def_bool y

Johannes Berg's avatar
Johannes Berg committed
283 284 285
config ARCH_SUSPEND_POSSIBLE
	def_bool y

286 287 288
config ARCH_WANT_HUGE_PMD_SHARE
	def_bool y

289 290 291
config ARCH_WANT_GENERAL_HUGETLB
	def_bool y

292
config ZONE_DMA32
293
	def_bool y if X86_64
294 295

config AUDIT_ARCH
296
	def_bool y if X86_64
297

298 299 300
config ARCH_SUPPORTS_OPTIMIZED_INLINING
	def_bool y

Akinobu Mita's avatar
Akinobu Mita committed
301 302 303
config ARCH_SUPPORTS_DEBUG_PAGEALLOC
	def_bool y

304 305 306 307 308
config KASAN_SHADOW_OFFSET
	hex
	depends on KASAN
	default 0xdffffc0000000000

309 310
config HAVE_INTEL_TXT
	def_bool y
311
	depends on INTEL_IOMMU && ACPI
312

313 314 315 316 317 318 319 320
config X86_32_SMP
	def_bool y
	depends on X86_32 && SMP

config X86_64_SMP
	def_bool y
	depends on X86_64 && SMP

321 322
config X86_32_LAZY_GS
	def_bool y
323
	depends on X86_32 && !CC_STACKPROTECTOR
324

325 326 327
config ARCH_SUPPORTS_UPROBES
	def_bool y

328 329 330
config FIX_EARLYCON_MEM
	def_bool y

331 332
config PGTABLE_LEVELS
	int
333
	default 5 if X86_5LEVEL
334 335 336 337
	default 4 if X86_64
	default 3 if X86_PAE
	default 2

338
source "init/Kconfig"
339
source "kernel/Kconfig.freezer"
340

341 342
menu "Processor type and features"

343 344 345 346 347 348 349 350 351 352
config ZONE_DMA
	bool "DMA memory allocation support" if EXPERT
	default y
	help
	  DMA memory allocation support allows devices with less than 32-bit
	  addressing to allocate within the first 16MB of address space.
	  Disable if no such devices will be used.

	  If unsure, say Y.

353 354 355 356
config SMP
	bool "Symmetric multi-processing support"
	---help---
	  This enables support for systems with more than one CPU. If you have
357 358
	  a system with only one CPU, say N. If you have a system with more
	  than one CPU, say Y.
359

360
	  If you say N here, the kernel will run on uni- and multiprocessor
361 362
	  machines, but will use only one CPU of a multiprocessor machine. If
	  you say Y here, the kernel will run on many, but not all,
363
	  uniprocessor machines. On a uniprocessor machine, the kernel
364 365 366 367 368 369 370 371 372 373 374
	  will run faster if you say N here.

	  Note that if you say Y here and choose architecture "586" or
	  "Pentium" under "Processor family", the kernel will not work on 486
	  architectures. Similarly, multiprocessor kernels for the "PPro"
	  architecture may not work on all Pentium based boards.

	  People using multiprocessor machines who say Y here should also say
	  Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
	  Management" code will be disabled if you say Y here.

Paul Bolle's avatar
Paul Bolle committed
375
	  See also <file:Documentation/x86/i386/IO-APIC.txt>,
376
	  <file:Documentation/lockup-watchdogs.txt> and the SMP-HOWTO available at
377 378 379 380
	  <http://www.tldp.org/docs.html#howto>.

	  If you don't know what to do here, say N.

381 382 383 384 385 386 387 388 389 390 391
config X86_FEATURE_NAMES
	bool "Processor feature human-readable names" if EMBEDDED
	default y
	---help---
	  This option compiles in a table of x86 feature bits and corresponding
	  names.  This is required to support /proc/cpuinfo and a few kernel
	  messages.  You can disable this to save space, at the expense of
	  making those few kernel messages show numeric feature bits instead.

	  If in doubt, say Y.

392 393 394 395 396 397 398 399 400 401 402
config X86_FAST_FEATURE_TESTS
	bool "Fast CPU feature tests" if EMBEDDED
	default y
	---help---
	  Some fast-paths in the kernel depend on the capabilities of the CPU.
	  Say Y here for the kernel to patch in the appropriate code at runtime
	  based on the capabilities of the CPU. The infrastructure for patching
	  code at runtime takes up some additional space; space-constrained
	  embedded systems may wish to say N here to produce smaller, slightly
	  slower code.

Yinghai Lu's avatar
Yinghai Lu committed
403 404
config X86_X2APIC
	bool "Support x2apic"
405
	depends on X86_LOCAL_APIC && X86_64 && (IRQ_REMAP || HYPERVISOR_GUEST)
Yinghai Lu's avatar
Yinghai Lu committed
406 407 408 409 410 411 412 413
	---help---
	  This enables x2apic support on CPUs that have this feature.

	  This allows 32-bit apic IDs (so it can support very large systems),
	  and accesses the local apic via MSRs not via mmio.

	  If you don't know what to do here, say N.

414
config X86_MPPARSE
415
	bool "Enable MPS table" if ACPI || SFI
416
	default y
417
	depends on X86_LOCAL_APIC
Ingo Molnar's avatar
Ingo Molnar committed
418
	---help---
419 420 421
	  For old smp systems that do not have proper acpi support. Newer systems
	  (esp with 64bit cpus) with acpi support, MADT and DSDT will override it

422 423 424
config X86_BIGSMP
	bool "Support for big SMP systems with more than 8 CPUs"
	depends on X86_32 && SMP
Ingo Molnar's avatar
Ingo Molnar committed
425
	---help---
426
	  This option is needed for the systems that have more than 8 CPUs
427

428 429 430 431
config GOLDFISH
       def_bool y
       depends on X86_GOLDFISH

432 433
config INTEL_RDT
	bool "Intel Resource Director Technology support"
434 435
	default n
	depends on X86 && CPU_SUP_INTEL
436
	select KERNFS
437
	help
438 439 440 441
	  Select to enable resource allocation and monitoring which are
	  sub-features of Intel Resource Director Technology(RDT). More
	  information about RDT can be found in the Intel x86
	  Architecture Software Developer Manual.
442 443 444

	  Say N if unsure.

445
if X86_32
446 447 448
config X86_EXTENDED_PLATFORM
	bool "Support for extended (non-PC) x86 platforms"
	default y
Ingo Molnar's avatar
Ingo Molnar committed
449
	---help---
450 451 452 453
	  If you disable this option then the kernel will only support
	  standard PC platforms. (which covers the vast majority of
	  systems out there.)

454 455
	  If you enable this option then you'll be able to select support
	  for the following (non-PC) 32 bit x86 platforms:
456
		Goldfish (Android emulator)
457 458 459
		AMD Elan
		RDC R-321x SoC
		SGI 320/540 (Visual Workstation)
460
		STA2X11-based (e.g. Northville)
461
		Moorestown MID devices
462 463 464

	  If you have one of these systems, or if you want to build a
	  generic distribution kernel, say Y here - otherwise say N.
465
endif
466

467 468 469 470 471 472 473 474 475 476 477
if X86_64
config X86_EXTENDED_PLATFORM
	bool "Support for extended (non-PC) x86 platforms"
	default y
	---help---
	  If you disable this option then the kernel will only support
	  standard PC platforms. (which covers the vast majority of
	  systems out there.)

	  If you enable this option then you'll be able to select support
	  for the following (non-PC) 64 bit x86 platforms:
Steffen Persvold's avatar
Steffen Persvold committed
478
		Numascale NumaChip
479 480 481 482 483 484
		ScaleMP vSMP
		SGI Ultraviolet

	  If you have one of these systems, or if you want to build a
	  generic distribution kernel, say Y here - otherwise say N.
endif
485 486
# This is an alphabetically sorted list of 64 bit extended platforms
# Please maintain the alphabetic order if and when there are additions
Steffen Persvold's avatar
Steffen Persvold committed
487 488 489 490 491 492 493
config X86_NUMACHIP
	bool "Numascale NumaChip"
	depends on X86_64
	depends on X86_EXTENDED_PLATFORM
	depends on NUMA
	depends on SMP
	depends on X86_X2APIC
494
	depends on PCI_MMCONFIG
Steffen Persvold's avatar
Steffen Persvold committed
495 496 497 498
	---help---
	  Adds support for Numascale NumaChip large-SMP systems. Needed to
	  enable more than ~168 cores.
	  If you don't have one of these, you should say N here.
499

500 501
config X86_VSMP
	bool "ScaleMP vSMP"
502
	select HYPERVISOR_GUEST
503 504 505
	select PARAVIRT
	depends on X86_64 && PCI
	depends on X86_EXTENDED_PLATFORM
506
	depends on SMP
Ingo Molnar's avatar
Ingo Molnar committed
507
	---help---
508 509 510
	  Support for ScaleMP vSMP systems.  Say 'Y' here if this kernel is
	  supposed to run on these EM64T-based machines.  Only choose this option
	  if you have one of these machines.
511

512 513 514
config X86_UV
	bool "SGI Ultraviolet"
	depends on X86_64
515
	depends on X86_EXTENDED_PLATFORM
516
	depends on NUMA
517
	depends on EFI
518
	depends on X86_X2APIC
519
	depends on PCI
Ingo Molnar's avatar
Ingo Molnar committed
520
	---help---
521 522 523
	  This option is needed in order to support SGI Ultraviolet systems.
	  If you don't have one of these, you should say N here.

524 525
# Following is an alphabetically sorted list of 32 bit extended platforms
# Please maintain the alphabetic order if and when there are additions
526

527 528
config X86_GOLDFISH
       bool "Goldfish (Virtual Platform)"
529
       depends on X86_EXTENDED_PLATFORM
530 531 532 533 534
       ---help---
	 Enable support for the Goldfish virtual platform used primarily
	 for Android development. Unless you are building for the Android
	 Goldfish emulator say N here.

535 536 537 538
config X86_INTEL_CE
	bool "CE4100 TV platform"
	depends on PCI
	depends on PCI_GODIRECT
539
	depends on X86_IO_APIC
540 541
	depends on X86_32
	depends on X86_EXTENDED_PLATFORM
542
	select X86_REBOOTFIXUPS
543 544
	select OF
	select OF_EARLY_FLATTREE
545 546 547 548 549
	---help---
	  Select for the Intel CE media processor (CE4100) SOC.
	  This option compiles in support for the CE4100 SOC for settop
	  boxes and media devices.

550
config X86_INTEL_MID
551 552
	bool "Intel MID platform support"
	depends on X86_EXTENDED_PLATFORM
553
	depends on X86_PLATFORM_DEVICES
554
	depends on PCI
555
	depends on X86_64 || (PCI_GOANY && X86_32)
556
	depends on X86_IO_APIC
557
	select SFI
558
	select I2C
559
	select DW_APB_TIMER
560 561
	select APB_TIMER
	select INTEL_SCU_IPC
562
	select MFD_INTEL_MSIC
563
	---help---
564 565 566
	  Select to build a kernel capable of supporting Intel MID (Mobile
	  Internet Device) platform systems which do not have the PCI legacy
	  interfaces. If you are building for a PC class system say N here.
567

568 569
	  Intel MID platforms are based on an Intel processor and chipset which
	  consume less power than most of the x86 derivatives.
570

571 572 573 574 575 576 577 578 579 580 581
config X86_INTEL_QUARK
	bool "Intel Quark platform support"
	depends on X86_32
	depends on X86_EXTENDED_PLATFORM
	depends on X86_PLATFORM_DEVICES
	depends on X86_TSC
	depends on PCI
	depends on PCI_GOANY
	depends on X86_IO_APIC
	select IOSF_MBI
	select INTEL_IMR
582
	select COMMON_CLK
583 584 585 586 587
	---help---
	  Select to include support for Quark X1000 SoC.
	  Say Y here if you have a Quark based system such as the Arduino
	  compatible Intel Galileo.

588 589
config X86_INTEL_LPSS
	bool "Intel Low Power Subsystem Support"
590
	depends on X86 && ACPI
591
	select COMMON_CLK
592
	select PINCTRL
593
	select IOSF_MBI
594 595 596
	---help---
	  Select to build support for Intel Low Power Subsystem such as
	  found on Intel Lynxpoint PCH. Selecting this option enables
597 598
	  things like clock tree (common clock framework) and pincontrol
	  which are needed by the LPSS peripheral drivers.
599

600 601 602 603 604 605 606 607 608 609 610
config X86_AMD_PLATFORM_DEVICE
	bool "AMD ACPI2Platform devices support"
	depends on ACPI
	select COMMON_CLK
	select PINCTRL
	---help---
	  Select to interpret AMD specific ACPI device to platform device
	  such as I2C, UART, GPIO found on AMD Carrizo and later chipsets.
	  I2C and UART depend on COMMON_CLK to set clock. GPIO driver is
	  implemented under PINCTRL subsystem.

611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627
config IOSF_MBI
	tristate "Intel SoC IOSF Sideband support for SoC platforms"
	depends on PCI
	---help---
	  This option enables sideband register access support for Intel SoC
	  platforms. On these platforms the IOSF sideband is used in lieu of
	  MSR's for some register accesses, mostly but not limited to thermal
	  and power. Drivers may query the availability of this device to
	  determine if they need the sideband in order to work on these
	  platforms. The sideband is available on the following SoC products.
	  This list is not meant to be exclusive.
	   - BayTrail
	   - Braswell
	   - Quark

	  You should say Y if you are running a kernel on one of these SoC's.

628 629 630 631 632 633 634 635 636 637 638 639 640
config IOSF_MBI_DEBUG
	bool "Enable IOSF sideband access through debugfs"
	depends on IOSF_MBI && DEBUG_FS
	---help---
	  Select this option to expose the IOSF sideband access registers (MCR,
	  MDR, MCRX) through debugfs to write and read register information from
	  different units on the SoC. This is most useful for obtaining device
	  state information for debug and analysis. As this is a general access
	  mechanism, users of this option would have specific knowledge of the
	  device they want to access.

	  If you don't require the option or are in doubt, say N.

641 642
config X86_RDC321X
	bool "RDC R-321x SoC"
643
	depends on X86_32
644 645 646 647 648 649 650 651
	depends on X86_EXTENDED_PLATFORM
	select M486
	select X86_REBOOTFIXUPS
	---help---
	  This option is needed for RDC R-321x system-on-chip, also known
	  as R-8610-(G).
	  If you don't have one of these chips, you should say N here.

652
config X86_32_NON_STANDARD
653 654
	bool "Support non-standard 32-bit SMP architectures"
	depends on X86_32 && SMP
655
	depends on X86_EXTENDED_PLATFORM
Ingo Molnar's avatar
Ingo Molnar committed
656
	---help---
H. Peter Anvin's avatar
H. Peter Anvin committed
657 658 659 660
	  This option compiles in the bigsmp and STA2X11 default
	  subarchitectures.  It is intended for a generic binary
	  kernel. If you select them all, kernel will probe it one by
	  one and will fallback to default.
661

662
# Alphabetically sorted list of Non standard 32 bit platforms
663

664
config X86_SUPPORTS_MEMORY_FAILURE
Jan Beulich's avatar
Jan Beulich committed
665
	def_bool y
666 667 668 669 670 671 672
	# MCE code calls memory_failure():
	depends on X86_MCE
	# On 32-bit this adds too big of NODES_SHIFT and we run out of page flags:
	# On 32-bit SPARSEMEM adds too big of SECTIONS_WIDTH:
	depends on X86_64 || !SPARSEMEM
	select ARCH_SUPPORTS_MEMORY_FAILURE

673 674 675 676 677 678 679
config STA2X11
	bool "STA2X11 Companion Chip Support"
	depends on X86_32_NON_STANDARD && PCI
	select X86_DEV_DMA_OPS
	select X86_DMA_REMAP
	select SWIOTLB
	select MFD_STA2X11
680
	select GPIOLIB
681 682 683 684 685 686 687 688
	default n
	---help---
	  This adds support for boards based on the STA2X11 IO-Hub,
	  a.k.a. "ConneXt". The chip is used in place of the standard
	  PC chipset, so all "standard" peripherals are missing. If this
	  option is selected the kernel will still be able to boot on
	  standard PC machines.

689 690 691 692 693 694 695 696 697 698 699 700 701
config X86_32_IRIS
	tristate "Eurobraille/Iris poweroff module"
	depends on X86_32
	---help---
	  The Iris machines from EuroBraille do not have APM or ACPI support
	  to shut themselves down properly.  A special I/O sequence is
	  needed to do so, which is what this module does at
	  kernel shutdown.

	  This is only for Iris machines from EuroBraille.

	  If unused, say N.

702
config SCHED_OMIT_FRAME_POINTER
703 704
	def_bool y
	prompt "Single-depth WCHAN output"
705
	depends on X86
Ingo Molnar's avatar
Ingo Molnar committed
706
	---help---
707 708 709 710 711 712 713
	  Calculate simpler /proc/<PID>/wchan values. If this option
	  is disabled then wchan values will recurse back to the
	  caller function. This provides more accurate wchan values,
	  at the expense of slightly more scheduling overhead.

	  If in doubt, say "Y".

714 715
menuconfig HYPERVISOR_GUEST
	bool "Linux guest support"
Ingo Molnar's avatar
Ingo Molnar committed
716
	---help---
717 718 719
	  Say Y here to enable options for running Linux under various hyper-
	  visors. This option enables basic hypervisor detection and platform
	  setup.
720

721 722
	  If you say N, all options in this submenu will be skipped and
	  disabled, and Linux guest support won't be built in.
723

724
if HYPERVISOR_GUEST
725

726 727
config PARAVIRT
	bool "Enable paravirtualization code"
Ingo Molnar's avatar
Ingo Molnar committed
728
	---help---
729 730 731 732 733
	  This changes the kernel so it can modify itself when it is run
	  under a hypervisor, potentially improving performance significantly
	  over full virtualization.  However, when run without a hypervisor
	  the kernel is theoretically slower and slightly larger.

734 735 736 737 738 739 740
config PARAVIRT_DEBUG
	bool "paravirt-ops debugging"
	depends on PARAVIRT && DEBUG_KERNEL
	---help---
	  Enable to debug paravirt_ops internals.  Specifically, BUG if
	  a paravirt_op is missing when it is called.

741 742
config PARAVIRT_SPINLOCKS
	bool "Paravirtualization layer for spinlocks"
743
	depends on PARAVIRT && SMP
744 745 746 747 748
	---help---
	  Paravirtualized spinlocks allow a pvops backend to replace the
	  spinlock implementation with something virtualization-friendly
	  (for example, block the virtual CPU rather than spinning).

749 750
	  It has a minimal impact on native kernels and gives a nice performance
	  benefit on paravirtualized KVM / Xen kernels.
751

752
	  If you are unsure how to answer this question, answer Y.
753

754 755
config QUEUED_LOCK_STAT
	bool "Paravirt queued spinlock statistics"
756
	depends on PARAVIRT_SPINLOCKS && DEBUG_FS
757 758 759 760 761
	---help---
	  Enable the collection of statistical data on the slowpath
	  behavior of paravirtualized queued spinlocks and report
	  them on debugfs.

762
source "arch/x86/xen/Kconfig"
763

764 765 766 767 768
config KVM_GUEST
	bool "KVM Guest support (including kvmclock)"
	depends on PARAVIRT
	select PARAVIRT_CLOCK
	default y
Ingo Molnar's avatar
Ingo Molnar committed
769
	---help---
770 771 772 773 774
	  This option enables various optimizations for running under the KVM
	  hypervisor. It includes a paravirtualized clock, so that instead
	  of relying on a PIT (or probably other) emulation by the
	  underlying device model, the host provides the guest with
	  timing infrastructure such as time of day, and system time
775

776 777 778 779 780 781 782 783 784
config KVM_DEBUG_FS
	bool "Enable debug information for KVM Guests in debugfs"
	depends on KVM_GUEST && DEBUG_FS
	default n
	---help---
	  This option enables collection of various statistics for KVM guest.
	  Statistics are displayed in debugfs filesystem. Enabling this option
	  may incur significant overhead.

785 786 787 788
config PARAVIRT_TIME_ACCOUNTING
	bool "Paravirtual steal time accounting"
	depends on PARAVIRT
	default n
Ingo Molnar's avatar
Ingo Molnar committed
789
	---help---
790 791 792 793 794 795 796 797 798
	  Select this option to enable fine granularity task steal time
	  accounting. Time spent executing other tasks in parallel with
	  the current vCPU is discounted from the vCPU power. To account for
	  that, there can be a small performance impact.

	  If in doubt, say N here.

config PARAVIRT_CLOCK
	bool
799

800
endif #HYPERVISOR_GUEST
801

802
config NO_BOOTMEM
Yinghai Lu's avatar
Yinghai Lu committed
803
	def_bool y
804

805 806 807
source "arch/x86/Kconfig.cpu"

config HPET_TIMER
808
	def_bool X86_64
809
	prompt "HPET Timer Support" if X86_32
Ingo Molnar's avatar
Ingo Molnar committed
810 811 812 813 814 815 816
	---help---
	  Use the IA-PC HPET (High Precision Event Timer) to manage
	  time in preference to the PIT and RTC, if a HPET is
	  present.
	  HPET is the next generation timer replacing legacy 8254s.
	  The HPET provides a stable time base on SMP
	  systems, unlike the TSC, but it is more expensive to access,
Michael S. Tsirkin's avatar
Michael S. Tsirkin committed
817 818
	  as it is off-chip.  The interface used is documented
	  in the HPET spec, revision 1.
819

Ingo Molnar's avatar
Ingo Molnar committed
820 821 822
	  You can safely choose Y here.  However, HPET will only be
	  activated if the platform and the BIOS support this feature.
	  Otherwise the 8254 will be used for timing services.
823

Ingo Molnar's avatar
Ingo Molnar committed
824
	  Choose N to continue using the legacy 8254 timer.
825 826

config HPET_EMULATE_RTC
827
	def_bool y
828
	depends on HPET_TIMER && (RTC=y || RTC=m || RTC_DRV_CMOS=m || RTC_DRV_CMOS=y)
829

830
config APB_TIMER
831 832
       def_bool y if X86_INTEL_MID
       prompt "Intel MID APB Timer Support" if X86_INTEL_MID
833
       select DW_APB_TIMER
834
       depends on X86_INTEL_MID && SFI
835 836 837 838 839 840 841
       help
         APB timer is the replacement for 8254, HPET on X86 MID platforms.
         The APBT provides a stable time base on SMP
         systems, unlike the TSC, but it is more expensive to access,
         as it is off-chip. APB timers are always running regardless of CPU
         C states, they are used as per CPU clockevent device when possible.

842
# Mark as expert because too many people got it wrong.
843
# The code disables itself when not needed.
844 845
config DMI
	default y
846
	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
847
	bool "Enable DMI scanning" if EXPERT
Ingo Molnar's avatar
Ingo Molnar committed
848
	---help---
849 850 851 852 853
	  Enabled scanning of DMI to identify machine quirks. Say Y
	  here unless you have verified that your setup is not
	  affected by entries in the DMI blacklist. Required by PNP
	  BIOS code.

854
config GART_IOMMU
855
	bool "Old AMD GART IOMMU support"
856
	select SWIOTLB
857
	depends on X86_64 && PCI && AMD_NB
Ingo Molnar's avatar
Ingo Molnar committed
858
	---help---
859 860 861 862 863 864 865 866 867 868 869 870 871 872 873
	  Provides a driver for older AMD Athlon64/Opteron/Turion/Sempron
	  GART based hardware IOMMUs.

	  The GART supports full DMA access for devices with 32-bit access
	  limitations, on systems with more than 3 GB. This is usually needed
	  for USB, sound, many IDE/SATA chipsets and some other devices.

	  Newer systems typically have a modern AMD IOMMU, supported via
	  the CONFIG_AMD_IOMMU=y config option.

	  In normal configurations this driver is only active when needed:
	  there's more than 3 GB of memory and the system contains a
	  32-bit limited device.

	  If unsure, say Y.
874 875 876 877

config CALGARY_IOMMU
	bool "IBM Calgary IOMMU support"
	select SWIOTLB
878
	depends on X86_64 && PCI
Ingo Molnar's avatar
Ingo Molnar committed
879
	---help---
880 881 882 883 884 885 886 887 888 889 890 891 892 893
	  Support for hardware IOMMUs in IBM's xSeries x366 and x460
	  systems. Needed to run systems with more than 3GB of memory
	  properly with 32-bit PCI devices that do not support DAC
	  (Double Address Cycle). Calgary also supports bus level
	  isolation, where all DMAs pass through the IOMMU.  This
	  prevents them from going anywhere except their intended
	  destination. This catches hard-to-find kernel bugs and
	  mis-behaving drivers and devices that do not use the DMA-API
	  properly to set up their DMA buffers.  The IOMMU can be
	  turned off at boot time with the iommu=off parameter.
	  Normally the kernel will make the right choice by itself.
	  If unsure, say Y.

config CALGARY_IOMMU_ENABLED_BY_DEFAULT
894 895
	def_bool y
	prompt "Should Calgary be enabled by default?"
896
	depends on CALGARY_IOMMU
Ingo Molnar's avatar
Ingo Molnar committed
897
	---help---
898 899 900 901 902 903 904 905
	  Should Calgary be enabled by default? if you choose 'y', Calgary
	  will be used (if it exists). If you choose 'n', Calgary will not be
	  used even if it exists. If you choose 'n' and would like to use
	  Calgary anyway, pass 'iommu=calgary' on the kernel command line.
	  If unsure, say Y.

# need this always selected by IOMMU for the VIA workaround
config SWIOTLB
906
	def_bool y if X86_64
Ingo Molnar's avatar
Ingo Molnar committed
907
	---help---
908
	  Support for software bounce buffers used on x86-64 systems
909 910 911 912
	  which don't have a hardware IOMMU. Using this PCI devices
	  which can only access 32-bits of memory can be used on systems
	  with more than 3 GB of memory.
	  If unsure, say Y.
913

914
config IOMMU_HELPER
915 916
	def_bool y
	depends on CALGARY_IOMMU || GART_IOMMU || SWIOTLB || AMD_IOMMU
917

918
config MAXSMP
919
	bool "Enable Maximum number of SMP Processors and NUMA Nodes"
920
	depends on X86_64 && SMP && DEBUG_KERNEL
Mike Travis's avatar
Mike Travis committed
921
	select CPUMASK_OFFSTACK
Ingo Molnar's avatar
Ingo Molnar committed
922
	---help---
923
	  Enable maximum number of CPUS and NUMA Nodes for this architecture.
924
	  If unsure, say N.
925 926

config NR_CPUS
Mike Travis's avatar
Mike Travis committed
927
	int "Maximum number of CPUs" if SMP && !MAXSMP
928
	range 2 8 if SMP && X86_32 && !X86_BIGSMP
929
	range 2 512 if SMP && !MAXSMP && !CPUMASK_OFFSTACK
930
	range 2 8192 if SMP && !MAXSMP && CPUMASK_OFFSTACK && X86_64
931
	default "1" if !SMP
932
	default "8192" if MAXSMP
H. Peter Anvin's avatar
H. Peter Anvin committed
933
	default "32" if SMP && X86_BIGSMP
934 935
	default "8" if SMP && X86_32
	default "64" if SMP
Ingo Molnar's avatar
Ingo Molnar committed
936
	---help---
937
	  This allows you to specify the maximum number of CPUs which this
938
	  kernel will support.  If CPUMASK_OFFSTACK is enabled, the maximum
939
	  supported value is 8192, otherwise the maximum value is 512.  The
940 941 942 943 944 945 946
	  minimum value which makes sense is 2.

	  This is purely to save memory - each supported CPU adds
	  approximately eight kilobytes to the kernel image.

config SCHED_SMT
	bool "SMT (Hyperthreading) scheduler support"
Borislav Petkov's avatar
Borislav Petkov committed
947
	depends on SMP
Ingo Molnar's avatar
Ingo Molnar committed
948
	---help---
949 950 951 952 953 954
	  SMT scheduler support improves the CPU scheduler's decision making
	  when dealing with Intel Pentium 4 chips with HyperThreading at a
	  cost of slightly increased overhead in some places. If unsure say
	  N here.

config SCHED_MC
955 956
	def_bool y
	prompt "Multi-core scheduler support"
Borislav Petkov's avatar
Borislav Petkov committed
957
	depends on SMP
Ingo Molnar's avatar
Ingo Molnar committed
958
	---help---
959 960 961 962
	  Multi-core scheduler support improves the CPU scheduler's decision
	  making when dealing with multi-core CPU chips at a cost of slightly
	  increased overhead in some places. If unsure say N here.

963 964
config SCHED_MC_PRIO
	bool "CPU core priorities scheduler support"
965 966 967
	depends on SCHED_MC && CPU_SUP_INTEL
	select X86_INTEL_PSTATE
	select CPU_FREQ
968
	default y
969
	---help---
970 971 972 973
	  Intel Turbo Boost Max Technology 3.0 enabled CPUs have a
	  core ordering determined at manufacturing time, which allows
	  certain cores to reach higher turbo frequencies (when running
	  single threaded workloads) than others.
974

975 976 977 978
	  Enabling this kernel feature teaches the scheduler about
	  the TBM3 (aka ITMT) priority order of the CPU cores and adjusts the
	  scheduler's CPU selection logic accordingly, so that higher
	  overall system performance can be achieved.
979

980
	  This feature will have no effect on CPUs without this feature.
981

982
	  If unsure say Y here.
983

984 985
source "kernel/Kconfig.preempt"

Thomas Gleixner's avatar
Thomas Gleixner committed
986 987
config UP_LATE_INIT
       def_bool y
988
       depends on !SMP && X86_LOCAL_APIC
Thomas Gleixner's avatar
Thomas Gleixner committed
989

990
config X86_UP_APIC
991 992
	bool "Local APIC support on uniprocessors" if !PCI_MSI
	default PCI_MSI
993
	depends on X86_32 && !SMP && !X86_32_NON_STANDARD
Ingo Molnar's avatar
Ingo Molnar committed
994
	---help---
995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006
	  A local APIC (Advanced Programmable Interrupt Controller) is an
	  integrated interrupt controller in the CPU. If you have a single-CPU
	  system which has a processor with a local APIC, you can say Y here to
	  enable and use it. If you say Y here even though your machine doesn't
	  have a local APIC, then the kernel will still run with no slowdown at
	  all. The local APIC supports CPU-generated self-interrupts (timer,
	  performance counters), and the NMI watchdog which detects hard
	  lockups.

config X86_UP_IOAPIC
	bool "IO-APIC support on uniprocessors"
	depends on X86_UP_APIC
Ingo Molnar's avatar
Ingo Molnar committed
1007
	---help---
1008 1009 1010 1011 1012 1013 1014 1015 1016
	  An IO-APIC (I/O Advanced Programmable Interrupt Controller) is an
	  SMP-capable replacement for PC-style interrupt controllers. Most
	  SMP systems and many recent uniprocessor systems have one.

	  If you have a single-CPU system with an IO-APIC, you can say Y here
	  to use it. If you say Y here even though your machine doesn't have
	  an IO-APIC, then the kernel will still run with no slowdown at all.

config X86_LOCAL_APIC
1017
	def_bool y
1018
	depends on X86_64 || SMP || X86_32_NON_STANDARD || X86_UP_APIC || PCI_MSI
1019
	select IRQ_DOMAIN_HIERARCHY
1020
	select PCI_MSI_IRQ_DOMAIN if PCI_MSI
1021 1022

config X86_IO_APIC
1023 1024
	def_bool y
	depends on X86_LOCAL_APIC || X86_UP_IOAPIC
1025

1026 1027 1028
config X86_REROUTE_FOR_BROKEN_BOOT_IRQS
	bool "Reroute for broken boot IRQs"
	depends on X86_IO_APIC
Ingo Molnar's avatar
Ingo Molnar committed
1029
	---help---
1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048
	  This option enables a workaround that fixes a source of
	  spurious interrupts. This is recommended when threaded
	  interrupt handling is used on systems where the generation of
	  superfluous "boot interrupts" cannot be disabled.

	  Some chipsets generate a legacy INTx "boot IRQ" when the IRQ
	  entry in the chipset's IO-APIC is masked (as, e.g. the RT
	  kernel does during interrupt handling). On chipsets where this
	  boot IRQ generation cannot be disabled, this workaround keeps
	  the original IRQ line masked so that only the equivalent "boot
	  IRQ" is delivered to the CPUs. The workaround also tells the
	  kernel to set up the IRQ handler on the boot IRQ line. In this
	  way only one interrupt is delivered to the kernel. Otherwise
	  the spurious second interrupt may cause the kernel to bring
	  down (vital) interrupt lines.

	  Only affects "broken" chipsets. Interrupt sharing may be
	  increased on these systems.

1049
config X86_MCE
1050
	bool "Machine Check / overheating reporting"
1051
	select GENERIC_ALLOCATOR
1052
	default y
1053
	---help---
1054 1055
	  Machine Check support allows the processor to notify the
	  kernel if it detects a problem (e.g. overheating, data corruption).
1056
	  The action the kernel takes depends on the severity of the problem,
1057
	  ranging from warning messages to halting the machine.
1058

1059 1060 1061 1062 1063 1064 1065 1066
config X86_MCELOG_LEGACY
	bool "Support for deprecated /dev/mcelog character device"
	depends on X86_MCE
	---help---
	  Enable support for /dev/mcelog which is needed by the old mcelog
	  userspace logging daemon. Consider switching to the new generation
	  rasdaemon solution.

1067
config X86_MCE_INTEL
1068 1069
	def_bool y
	prompt "Intel MCE features"
1070
	depends on X86_MCE && X86_LOCAL_APIC
Ingo Molnar's avatar
Ingo Molnar committed
1071
	---help---
1072 1073 1074 1075
	   Additional support for intel specific MCE features such as
	   the thermal monitor.

config X86_MCE_AMD
1076 1077
	def_bool y
	prompt "AMD MCE features"
1078
	depends on X86_MCE && X86_LOCAL_APIC && AMD_NB
Ingo Molnar's avatar
Ingo Molnar committed
1079
	---help---
1080 1081 1082
	   Additional support for AMD specific MCE features such as
	   the DRAM Error Threshold.

1083
config X86_ANCIENT_MCE
Jan Beulich's avatar
Jan Beulich committed
1084
	bool "Support for old Pentium 5 / WinChip machine checks"
1085
	depends on X86_32 && X86_MCE
1086 1087
	---help---
	  Include support for machine check handling on old Pentium 5 or WinChip
Masanari Iida's avatar
Masanari Iida committed
1088
	  systems. These typically need to be enabled explicitly on the command
1089
	  line.
1090

1091 1092
config X86_MCE_THRESHOLD
	depends on X86_MCE_AMD || X86_MCE_INTEL
Jan Beulich's avatar
Jan Beulich committed
1093
	def_bool y
1094

1095
config X86_MCE_INJECT
1096
	depends on X86_MCE && X86_LOCAL_APIC && DEBUG_FS
1097 1098 1099 1100 1101 1102
	tristate "Machine check injector support"
	---help---
	  Provide support for injecting machine checks for testing purposes.
	  If you don't know what a machine check is and you don't do kernel
	  QA it is safe to say n.

1103 1104
config X86_THERMAL_VECTOR
	def_bool y
1105
	depends on X86_MCE_INTEL
1106

1107
source "arch/x86/events/Kconfig"
1108

1109
config X86_LEGACY_VM86
1110
	bool "Legacy VM86 support"
1111
	default n
1112
	depends on X86_32
Ingo Molnar's avatar
Ingo Molnar committed
1113
	---help---
1114 1115 1116 1117 1118 1119 1120 1121
	  This option allows user programs to put the CPU into V8086
	  mode, which is an 80286-era approximation of 16-bit real mode.

	  Some very old versions of X and/or vbetool require this option
	  for user mode setting.  Similarly, DOSEMU will use it if
	  available to accelerate real mode DOS programs.  However, any
	  recent version of DOSEMU, X, or vbetool should be fully
	  functional even without kernel VM86 support, as they will all
1122 1123 1124 1125
	  fall back to software emulation. Nevertheless, if you are using
	  a 16-bit DOS program where 16-bit performance matters, vm86
	  mode might be faster than emulation and you might want to
	  enable this option.
1126

1127 1128 1129 1130
	  Note that any app that works on a 64-bit kernel is unlikely to
	  need this option, as 64-bit kernels don't, and can't, support
	  V8086 mode. This option is also unrelated to 16-bit protected
	  mode and is not needed to run most 16-bit programs under Wine.
1131

1132 1133
	  Enabling this option increases the complexity of the kernel
	  and slows down exception handling a tiny bit.
1134

1135
	  If unsure, say N here.
1136 1137 1138 1139

config VM86
       bool
       default X86_LEGACY_VM86
1140 1141 1142 1143

config X86_16BIT
	bool "Enable support for 16-bit segments" if EXPERT
	default y
1144
	depends on MODIFY_LDT_SYSCALL
1145 1146 1147 1148 1149 1150