179b05c1fSChristoph Hellwig# SPDX-License-Identifier: GPL-2.0 279b05c1fSChristoph Hellwig 3f163977dSChristoph Hellwigmenu "UML-specific options" 4f163977dSChristoph Hellwig 5f163977dSChristoph Hellwigconfig UML 6f163977dSChristoph Hellwig bool 7f163977dSChristoph Hellwig default y 8f163977dSChristoph Hellwig select ARCH_HAS_KCOV 987a4c375SChristoph Hellwig select ARCH_NO_PREEMPT 10f163977dSChristoph Hellwig select HAVE_ARCH_AUDITSYSCALL 11f163977dSChristoph Hellwig select HAVE_ARCH_SECCOMP_FILTER 12f163977dSChristoph Hellwig select HAVE_UID16 13f163977dSChristoph Hellwig select HAVE_FUTEX_CMPXCHG if FUTEX 14f163977dSChristoph Hellwig select HAVE_DEBUG_KMEMLEAK 150d76433cSHernán Gonzalez select HAVE_DEBUG_BUGVERBOSE 16f163977dSChristoph Hellwig select GENERIC_IRQ_SHOW 17f163977dSChristoph Hellwig select GENERIC_CPU_DEVICES 18f163977dSChristoph Hellwig select GENERIC_CLOCKEVENTS 19f163977dSChristoph Hellwig select HAVE_GCC_PLUGINS 20f163977dSChristoph Hellwig select TTY # Needed for line.c 21f163977dSChristoph Hellwig 22f163977dSChristoph Hellwigconfig MMU 23f163977dSChristoph Hellwig bool 24f163977dSChristoph Hellwig default y 25f163977dSChristoph Hellwig 26f163977dSChristoph Hellwigconfig NO_IOMEM 27f163977dSChristoph Hellwig def_bool y 28f163977dSChristoph Hellwig 29f163977dSChristoph Hellwigconfig ISA 30f163977dSChristoph Hellwig bool 31f163977dSChristoph Hellwig 32f163977dSChristoph Hellwigconfig SBUS 33f163977dSChristoph Hellwig bool 34f163977dSChristoph Hellwig 35f163977dSChristoph Hellwigconfig TRACE_IRQFLAGS_SUPPORT 36f163977dSChristoph Hellwig bool 37f163977dSChristoph Hellwig default y 38f163977dSChristoph Hellwig 39f163977dSChristoph Hellwigconfig LOCKDEP_SUPPORT 40f163977dSChristoph Hellwig bool 41f163977dSChristoph Hellwig default y 42f163977dSChristoph Hellwig 43f163977dSChristoph Hellwigconfig STACKTRACE_SUPPORT 44f163977dSChristoph Hellwig bool 45f163977dSChristoph Hellwig default y 46f163977dSChristoph Hellwig select STACKTRACE 47f163977dSChristoph Hellwig 48f163977dSChristoph Hellwigconfig GENERIC_CALIBRATE_DELAY 49f163977dSChristoph Hellwig bool 50f163977dSChristoph Hellwig default y 51f163977dSChristoph Hellwig 52f163977dSChristoph Hellwigconfig HZ 53f163977dSChristoph Hellwig int 54f163977dSChristoph Hellwig default 100 55f163977dSChristoph Hellwig 56f163977dSChristoph Hellwigconfig NR_CPUS 57f163977dSChristoph Hellwig int 58f163977dSChristoph Hellwig range 1 1 59f163977dSChristoph Hellwig default 1 60f163977dSChristoph Hellwig 6179b05c1fSChristoph Hellwigsource "arch/$(HEADER_ARCH)/um/Kconfig" 62f163977dSChristoph Hellwig 63f163977dSChristoph Hellwigconfig STATIC_LINK 64f163977dSChristoph Hellwig bool "Force a static link" 65f163977dSChristoph Hellwig default n 66f163977dSChristoph Hellwig help 67f163977dSChristoph Hellwig This option gives you the ability to force a static link of UML. 68f163977dSChristoph Hellwig Normally, UML is linked as a shared binary. This is inconvenient for 69f163977dSChristoph Hellwig use in a chroot jail. So, if you intend to run UML inside a chroot, 70f163977dSChristoph Hellwig you probably want to say Y here. 71f163977dSChristoph Hellwig Additionally, this option enables using higher memory spaces (up to 72f163977dSChristoph Hellwig 2.75G) for UML. 73f163977dSChristoph Hellwig 74f163977dSChristoph Hellwigconfig LD_SCRIPT_STATIC 75f163977dSChristoph Hellwig bool 76f163977dSChristoph Hellwig default y 77f163977dSChristoph Hellwig depends on STATIC_LINK 78f163977dSChristoph Hellwig 79f163977dSChristoph Hellwigconfig LD_SCRIPT_DYN 80f163977dSChristoph Hellwig bool 81f163977dSChristoph Hellwig default y 82f163977dSChristoph Hellwig depends on !LD_SCRIPT_STATIC 83f163977dSChristoph Hellwig select MODULE_REL_CRCS if MODVERSIONS 84f163977dSChristoph Hellwig 85f163977dSChristoph Hellwigconfig HOSTFS 86f163977dSChristoph Hellwig tristate "Host filesystem" 87f163977dSChristoph Hellwig help 88f163977dSChristoph Hellwig While the User-Mode Linux port uses its own root file system for 89f163977dSChristoph Hellwig booting and normal file access, this module lets the UML user 90f163977dSChristoph Hellwig access files stored on the host. It does not require any 91f163977dSChristoph Hellwig network connection between the Host and UML. An example use of 92f163977dSChristoph Hellwig this might be: 93f163977dSChristoph Hellwig 94f163977dSChristoph Hellwig mount none /tmp/fromhost -t hostfs -o /tmp/umlshare 95f163977dSChristoph Hellwig 96f163977dSChristoph Hellwig where /tmp/fromhost is an empty directory inside UML and 97f163977dSChristoph Hellwig /tmp/umlshare is a directory on the host with files the UML user 98f163977dSChristoph Hellwig wishes to access. 99f163977dSChristoph Hellwig 100f163977dSChristoph Hellwig For more information, see 101f163977dSChristoph Hellwig <http://user-mode-linux.sourceforge.net/hostfs.html>. 102f163977dSChristoph Hellwig 103f163977dSChristoph Hellwig If you'd like to be able to work with files stored on the host, 104f163977dSChristoph Hellwig say Y or M here; otherwise say N. 105f163977dSChristoph Hellwig 106f163977dSChristoph Hellwigconfig MCONSOLE 107f163977dSChristoph Hellwig bool "Management console" 108f163977dSChristoph Hellwig depends on PROC_FS 109f163977dSChristoph Hellwig default y 110f163977dSChristoph Hellwig help 111f163977dSChristoph Hellwig The user mode linux management console is a low-level interface to 112f163977dSChristoph Hellwig the kernel, somewhat like the i386 SysRq interface. Since there is 113f163977dSChristoph Hellwig a full-blown operating system running under every user mode linux 114f163977dSChristoph Hellwig instance, there is much greater flexibility possible than with the 115f163977dSChristoph Hellwig SysRq mechanism. 116f163977dSChristoph Hellwig 117f163977dSChristoph Hellwig If you answer 'Y' to this option, to use this feature, you need the 118f163977dSChristoph Hellwig mconsole client (called uml_mconsole) which is present in CVS in 119f163977dSChristoph Hellwig 2.4.5-9um and later (path /tools/mconsole), and is also in the 120f163977dSChristoph Hellwig distribution RPM package in 2.4.6 and later. 121f163977dSChristoph Hellwig 122f163977dSChristoph Hellwig It is safe to say 'Y' here. 123f163977dSChristoph Hellwig 124f163977dSChristoph Hellwigconfig MAGIC_SYSRQ 125f163977dSChristoph Hellwig bool "Magic SysRq key" 126f163977dSChristoph Hellwig depends on MCONSOLE 127f163977dSChristoph Hellwig help 128f163977dSChristoph Hellwig If you say Y here, you will have some control over the system even 129f163977dSChristoph Hellwig if the system crashes for example during kernel debugging (e.g., you 130f163977dSChristoph Hellwig will be able to flush the buffer cache to disk, reboot the system 131f163977dSChristoph Hellwig immediately or dump some status information). A key for each of the 132f163977dSChristoph Hellwig possible requests is provided. 133f163977dSChristoph Hellwig 134f163977dSChristoph Hellwig This is the feature normally accomplished by pressing a key 135f163977dSChristoph Hellwig while holding SysRq (Alt+PrintScreen). 136f163977dSChristoph Hellwig 137f163977dSChristoph Hellwig On UML, this is accomplished by sending a "sysrq" command with 138f163977dSChristoph Hellwig mconsole, followed by the letter for the requested command. 139f163977dSChristoph Hellwig 140f163977dSChristoph Hellwig The keys are documented in <file:Documentation/admin-guide/sysrq.rst>. Don't say Y 141f163977dSChristoph Hellwig unless you really know what this hack does. 142f163977dSChristoph Hellwig 143f163977dSChristoph Hellwigconfig KERNEL_STACK_ORDER 144f163977dSChristoph Hellwig int "Kernel stack size order" 1455c2ffce1SAnton Ivanov default 2 if 64BIT 1465c2ffce1SAnton Ivanov range 2 10 if 64BIT 1475c2ffce1SAnton Ivanov default 1 if !64BIT 148f163977dSChristoph Hellwig help 149f163977dSChristoph Hellwig This option determines the size of UML kernel stacks. They will 150f163977dSChristoph Hellwig be 1 << order pages. The default is OK unless you're running Valgrind 151f163977dSChristoph Hellwig on UML, in which case, set this to 3. 1525c2ffce1SAnton Ivanov It is possible to reduce the stack to 1 for 64BIT and 0 for 32BIT on 1535c2ffce1SAnton Ivanov older (pre-2017) CPUs. It is not recommended on newer CPUs due to the 1545c2ffce1SAnton Ivanov increase in the size of the state which needs to be saved when handling 1555c2ffce1SAnton Ivanov signals. 156f163977dSChristoph Hellwig 157f163977dSChristoph Hellwigconfig MMAPPER 158f163977dSChristoph Hellwig tristate "iomem emulation driver" 159f163977dSChristoph Hellwig help 160f163977dSChristoph Hellwig This driver allows a host file to be used as emulated IO memory inside 161f163977dSChristoph Hellwig UML. 162f163977dSChristoph Hellwig 163f163977dSChristoph Hellwigconfig NO_DMA 164f163977dSChristoph Hellwig def_bool y 165f163977dSChristoph Hellwig 166f163977dSChristoph Hellwigconfig PGTABLE_LEVELS 167f163977dSChristoph Hellwig int 168f163977dSChristoph Hellwig default 3 if 3_LEVEL_PGTABLES 169f163977dSChristoph Hellwig default 2 170f163977dSChristoph Hellwig 171f163977dSChristoph Hellwigconfig SECCOMP 172f163977dSChristoph Hellwig def_bool y 173f163977dSChristoph Hellwig prompt "Enable seccomp to safely compute untrusted bytecode" 174f163977dSChristoph Hellwig ---help--- 175f163977dSChristoph Hellwig This kernel feature is useful for number crunching applications 176f163977dSChristoph Hellwig that may need to compute untrusted bytecode during their 177f163977dSChristoph Hellwig execution. By using pipes or other transports made available to 178f163977dSChristoph Hellwig the process as file descriptors supporting the read/write 179f163977dSChristoph Hellwig syscalls, it's possible to isolate those applications in 180f163977dSChristoph Hellwig their own address space using seccomp. Once seccomp is 181f163977dSChristoph Hellwig enabled via prctl(PR_SET_SECCOMP), it cannot be disabled 182f163977dSChristoph Hellwig and the task is only allowed to execute a few safe syscalls 183f163977dSChristoph Hellwig defined by each seccomp mode. 184f163977dSChristoph Hellwig 185f163977dSChristoph Hellwig If unsure, say Y. 186f163977dSChristoph Hellwig 187*06503870SJohannes Bergconfig UML_TIME_TRAVEL_SUPPORT 188*06503870SJohannes Berg bool 189*06503870SJohannes Berg prompt "Support time-travel mode (e.g. for test execution)" 190*06503870SJohannes Berg help 191*06503870SJohannes Berg Enable this option to support time travel inside the UML instance. 192*06503870SJohannes Berg 193*06503870SJohannes Berg After enabling this option, two modes are accessible at runtime 194*06503870SJohannes Berg (selected by the kernel command line), see the kernel's command- 195*06503870SJohannes Berg line help for more details. 196*06503870SJohannes Berg 197*06503870SJohannes Berg It is safe to say Y, but you probably don't need this. 198*06503870SJohannes Berg 199f163977dSChristoph Hellwigendmenu 200f163977dSChristoph Hellwig 2019bea1801SChristoph Hellwigsource "arch/um/drivers/Kconfig" 202