Kconfig

UML-specific options

CONFIG_UML

Unknown
Default
  • y

CONFIG_MMU MMU support

On

Turning this off allows a nommu build, say Y.

Default
  • y

CONFIG_UML_DMA_EMULATION

Unknown

CONFIG_ISA

Unknown

CONFIG_SBUS

Unknown

CONFIG_LOCKDEP_SUPPORT

On
Default
  • y

CONFIG_STACKTRACE_SUPPORT

On
Default
  • y

CONFIG_GENERIC_CALIBRATE_DELAY

On
Default
  • y

CONFIG_HZ

Default
  • 100

CONFIG_UML_SUBARCH_SUPPORTS_SMP

Unknown

CONFIG_SMP Symmetric multi-processing support

On

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.

Default
  • n

CONFIG_NR_CPUS_RANGE_BEGIN

Defaults
  • 1 if !
  • 2

CONFIG_NR_CPUS_RANGE_END

Defaults
  • 1 if !
  • 64

CONFIG_NR_CPUS_DEFAULT

Defaults
  • 1 if !
  • 2

CONFIG_NR_CPUS Maximum number of CPUs

  • Visible if
  • Range
Default
Includearch/$(HEADER_ARCH)/um/KconfigUnresolved

CONFIG_MAY_HAVE_RUNTIME_DEPS

Unknown

CONFIG_LD_SCRIPT_STATIC

Unknown
Default
  • y

CONFIG_LD_SCRIPT_DYN_RPATH set rpath in the binary

Unknown

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.

Default
  • y

CONFIG_HOSTFS Host filesystem

  • Off
  • Module
  • Built in
Unknown

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

Unknown

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.

Default
  • y

CONFIG_ARCH_FORCE_MAX_ORDER Order of maximal physically contiguous allocations

Unknown
Defaults
  • "10" if
  • "16" if !

CONFIG_KERNEL_STACK_ORDER Kernel stack size order

Unknown

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.

  • Range3 10 if !
  • Range2 10 if
Defaults
  • 3 if !
  • 2 if
  • 1 if !

CONFIG_PGTABLE_LEVELS

Defaults
  • 4 if
  • 2 if !

CONFIG_UML_TIME_TRAVEL_SUPPORT Support time-travel mode (e.g. for test execution)

Unknown

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.

CONFIG_UML_MAX_USERSPACE_ITERATIONS Maximum number of unscheduled userspace iterations

Unknown

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.

Default
  • 10000

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.

Default
  • 0x100000000000
End of UML-specific options
Includearch/um/drivers/Kconfig Open file

CONFIG_ARCH_SUSPEND_POSSIBLE

On
  • Depends on!
Default
  • y

Power management options

Includekernel/power/Kconfig Open file
End of Power management options
CONFIG_NR_CPUS_RANGE_BEGIN declarations