UML-specific options
CONFIG_UML
- Selects
ARCH_DISABLE_KASAN_INLINE if STATIC_LINK - Selects
ARCH_NEEDS_DEFER_KASAN if STATIC_LINK - Selects
ARCH_WANTS_DYNAMIC_TASK_STRUCT - Selects
ARCH_HAS_CACHE_LINE_SIZE - Selects
ARCH_HAS_CPU_FINALIZE_INIT - Selects
ARCH_HAS_FORTIFY_SOURCE - Selects
ARCH_HAS_GCOV_PROFILE_ALL if !(! && CLANG_VERSION >= 200000 && CLANG_VERSION < 220100) - Selects
ARCH_HAS_KCOV - Selects
ARCH_HAS_STRNCPY_FROM_USER - Selects
ARCH_HAS_STRNLEN_USER - Selects
ARCH_HAS_STRICT_KERNEL_RWX if - Selects
HAVE_ARCH_AUDITSYSCALL - Selects
HAVE_ARCH_KASAN if && - Selects
HAVE_ARCH_KASAN_VMALLOC if HAVE_ARCH_KASAN - Selects
HAVE_ARCH_SECCOMP_FILTER - Selects
HAVE_ASM_MODVERSIONS - Selects
HAVE_UID16 - Selects
HAVE_DEBUG_KMEMLEAK - Selects
HAVE_DEBUG_BUGVERBOSE - Selects
HAVE_PAGE_SIZE_4KB - Selects
HAVE_PERF_EVENTS - Selects
NO_DMA if !UML_DMA_EMULATION - Selects
OF_EARLY_FLATTREE if OF - Selects
GENERIC_IRQ_SHOW - Selects
GENERIC_CPU_DEVICES - Selects
GENERIC_SMP_IDLE_THREAD - Selects
HAVE_GCC_PLUGINS - Selects
ARCH_SUPPORTS_LTO_CLANG - Selects
ARCH_SUPPORTS_LTO_CLANG_THIN - Selects
TRACE_IRQFLAGS_SUPPORT - Selects
TTY # Needed for line.c - Selects
HAVE_ARCH_VMAP_STACK if - Selects
HAVE_RUST - Selects
ARCH_HAS_UBSAN - Selects
HAVE_ARCH_TRACEHOOK - Selects
HAVE_SYSCALL_TRACEPOINTS - Selects
THREAD_INFO_IN_TASK - Selects
SPARSE_IRQ - Selects
UACCESS_MEMCPY if ! - Selects
GENERIC_STRNLEN_USER if ! - Selects
GENERIC_STRNCPY_FROM_USER if !
CONFIG_MMU MMU support
Turning this off allows a nommu build, say Y.
CONFIG_UML_DMA_EMULATION
CONFIG_NO_IOMEM disable IOMEM
- Visible if
EXPERT - Depends on
!INDIRECT_IOMEM
CONFIG_UML_IOMEM_EMULATION
- Selects
INDIRECT_IOMEM - Selects
GENERIC_PCI_IOMAP
CONFIG_ISA
CONFIG_SBUS
CONFIG_LOCKDEP_SUPPORT
CONFIG_STACKTRACE_SUPPORT
- Selects
STACKTRACE
CONFIG_GENERIC_CALIBRATE_DELAY
CONFIG_HZ
CONFIG_UML_SUBARCH_SUPPORTS_SMP
CONFIG_SMP Symmetric multi-processing support
This option enables UML SMP support.
With this enabled, users can tell UML to start multiple virtual processors. Each virtual processor is represented as a separate host thread.
In UML, kthreads and normal threads (when running in kernel mode) can be scheduled and executed simultaneously on different virtual processors. However, the userspace code of normal threads still runs within their respective single-threaded stubs.
That is, SMP support is available both within the kernel and across different processes, but remains limited within threads of the same process in userspace.
- Depends on
UML_SUBARCH_SUPPORTS_SMP
CONFIG_NR_CPUS_RANGE_BEGIN
CONFIG_NR_CPUS_RANGE_END
CONFIG_NR_CPUS_DEFAULT
CONFIG_NR_CPUS Maximum number of CPUs
- Visible if
- Range
arch/$(HEADER_ARCH)/um/KconfigUnresolvedCONFIG_MAY_HAVE_RUNTIME_DEPS
CONFIG_STATIC_LINK Force a static link
This option gives you the ability to force a static link of UML. Normally, UML is linked as a shared binary. This is inconvenient for use in a chroot jail. So, if you intend to run UML inside a chroot, you probably want to say Y here. Additionally, this option enables using higher memory spaces (up to 2.75G) for UML.
NOTE: This option is incompatible with some networking features which depend on features that require being dynamically loaded (like NSS).
- Depends on
!MAY_HAVE_RUNTIME_DEPS
CONFIG_LD_SCRIPT_STATIC
- Depends on
STATIC_LINK
CONFIG_LD_SCRIPT_DYN
- Depends on
!LD_SCRIPT_STATIC
CONFIG_LD_SCRIPT_DYN_RPATH set rpath in the binary
Add /lib (and /lib64 for 64-bit) to the linux binary's rpath explicitly.
You may need to turn this off if compiling for nix systems that have their libraries in random /nix directories and might otherwise unexpected use libraries from /lib or /lib64 instead of the desired ones.
- Visible if
EXPERT - Depends on
LD_SCRIPT_DYN
CONFIG_HOSTFS Host filesystem
- Off
- Module
- Built in
While the User-Mode Linux port uses its own root file system for booting and normal file access, this module lets the UML user access files stored on the host. It does not require any network connection between the Host and UML. An example use of this might be:
mount none /tmp/fromhost -t hostfs -o /tmp/umlshare
where /tmp/fromhost is an empty directory inside UML and /tmp/umlshare is a directory on the host with files the UML user wishes to access.
For more information, see <http://user-mode-linux.sourceforge.net/hostfs.html>.
If you'd like to be able to work with files stored on the host, say Y or M here; otherwise say N.
CONFIG_MCONSOLE Management console
The user mode linux management console is a low-level interface to the kernel, somewhat like the i386 SysRq interface. Since there is a full-blown operating system running under every user mode linux instance, there is much greater flexibility possible than with the SysRq mechanism.
If you answer 'Y' to this option, to use this feature, you need the mconsole client (called uml_mconsole) which is present in CVS in 2.4.5-9um and later (path /tools/mconsole), and is also in the distribution RPM package in 2.4.6 and later.
It is safe to say 'Y' here.
- Depends on
PROC_FS
CONFIG_ARCH_FORCE_MAX_ORDER Order of maximal physically contiguous allocations
- Visible if
EXPERT
CONFIG_KERNEL_STACK_ORDER Kernel stack size order
This option determines the size of UML kernel stacks. They will be 1 << order pages. The default is OK unless you're running Valgrind on UML, in which case, set this to 3. It is possible to reduce the stack to 1 for 64BIT and 0 for 32BIT on older (pre-2017) CPUs. It is not recommended on newer CPUs due to the increase in the size of the state which needs to be saved when handling signals.
- Range
3 10 if ! - Range
2 10 if
CONFIG_PGTABLE_LEVELS
CONFIG_UML_TIME_TRAVEL_SUPPORT Support time-travel mode (e.g. for test execution)
Enable this option to support time travel inside the UML instance.
After enabling this option, two modes are accessible at runtime (selected by the kernel command line), see the kernel's command- line help for more details.
It is safe to say Y, but you probably don't need this.
- Depends on
!RAID6_PQ_BENCHMARK - Depends on
!
CONFIG_UML_MAX_USERSPACE_ITERATIONS Maximum number of unscheduled userspace iterations
In UML inf-cpu and ext time-travel mode userspace can run without being interrupted. This will eventually overwhelm the kernel and create OOM situations (mainly RCU not running). This setting specifies the number of kernel/userspace switches (minor/major page fault, signal or syscall) for the same userspace thread before the sched_clock is advanced by a jiffie to trigger scheduling.
Setting it to zero disables the feature.
- Depends on
UML_TIME_TRAVEL_SUPPORT
CONFIG_KASAN_SHADOW_OFFSET
This is the offset at which the ~16TB of shadow memory is mapped and used by KASAN for memory debugging. This can be any address that has at least KASAN_SHADOW_SIZE (total address space divided by 8) amount of space so that the KASAN shadow memory does not conflict with anything. The default is 0x100000000000, which works even if mem is set to a large value. On low-memory systems, try 0x7fff8000, as it fits into the immediate of most instructions, improving performance.
- Depends on
KASAN
CONFIG_ARCH_SUSPEND_POSSIBLE
- Depends on
!
Power management options
- arch/alpha/Kconfig:89
- arch/arc/Kconfig:70
- arch/arm/Kconfig:319
- arch/arm64/Kconfig:278
- arch/csky/Kconfig:160
- arch/hexagon/Kconfig:57
- arch/loongarch/Kconfig:787
- arch/m68k/Kconfig:84
- arch/microblaze/Kconfig:93
- arch/mips/Kconfig:3046
- arch/nios2/Kconfig:69
- arch/openrisc/Kconfig:54
- arch/parisc/Kconfig:106
- arch/powerpc/Kconfig:30
- arch/riscv/Kconfig:292
- arch/s390/Kconfig:2
- arch/sh/mm/Kconfig:4
- arch/sparc/Kconfig:140
- arch/um/Kconfig:52
- arch/x86/Kconfig:356
- arch/xtensa/Kconfig:94
- arch/alpha/Kconfig:465
- arch/arc/Kconfig:167
- arch/arm/Kconfig:910
- arch/arm64/Kconfig:358
- arch/csky/Kconfig:313
- arch/hexagon/Kconfig:104
- arch/loongarch/Kconfig:513
- arch/mips/Kconfig:2700
- arch/openrisc/Kconfig:191
- arch/parisc/Kconfig:314
- arch/powerpc/platforms/Kconfig.cputype:550
- arch/riscv/Kconfig:437
- arch/s390/Kconfig:530
- arch/sh/Kconfig:560
- arch/sparc/Kconfig:158
- arch/um/Kconfig:97
- arch/x86/Kconfig:437
- arch/xtensa/Kconfig:245