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 8cb2c7d1aSMickaël Salaün select ARCH_EPHEMERAL_INODES 9f163977dSChristoph Hellwig select ARCH_HAS_KCOV 1087a4c375SChristoph Hellwig select ARCH_NO_PREEMPT 11f163977dSChristoph Hellwig select HAVE_ARCH_AUDITSYSCALL 12f163977dSChristoph Hellwig select HAVE_ARCH_SECCOMP_FILTER 132ff2b7ecSMasahiro Yamada select HAVE_ASM_MODVERSIONS 14f163977dSChristoph Hellwig select HAVE_UID16 15f163977dSChristoph Hellwig select HAVE_FUTEX_CMPXCHG if FUTEX 16f163977dSChristoph Hellwig select HAVE_DEBUG_KMEMLEAK 170d76433cSHernán Gonzalez select HAVE_DEBUG_BUGVERBOSE 18*68f5d3f3SJohannes Berg select NO_DMA if !UML_DMA_EMULATION 19f163977dSChristoph Hellwig select GENERIC_IRQ_SHOW 20f163977dSChristoph Hellwig select GENERIC_CPU_DEVICES 21f163977dSChristoph Hellwig select HAVE_GCC_PLUGINS 225e6e9852SChristoph Hellwig select SET_FS 23f163977dSChristoph Hellwig select TTY # Needed for line.c 24f163977dSChristoph Hellwig 25f163977dSChristoph Hellwigconfig MMU 26f163977dSChristoph Hellwig bool 27f163977dSChristoph Hellwig default y 28f163977dSChristoph Hellwig 29*68f5d3f3SJohannes Bergconfig UML_DMA_EMULATION 30*68f5d3f3SJohannes Berg bool 31*68f5d3f3SJohannes Berg 32f163977dSChristoph Hellwigconfig NO_IOMEM 330bbadafdSJohannes Berg bool "disable IOMEM" if EXPERT 34*68f5d3f3SJohannes Berg depends on !INDIRECT_IOMEM 350bbadafdSJohannes Berg default y 360bbadafdSJohannes Berg 37*68f5d3f3SJohannes Bergconfig UML_IOMEM_EMULATION 38*68f5d3f3SJohannes Berg bool 39*68f5d3f3SJohannes Berg select INDIRECT_IOMEM 40*68f5d3f3SJohannes Berg select GENERIC_PCI_IOMAP 41*68f5d3f3SJohannes Berg select GENERIC_IOMAP 42*68f5d3f3SJohannes Berg select NO_GENERIC_PCI_IOPORT_MAP 43*68f5d3f3SJohannes Berg 440bbadafdSJohannes Bergconfig NO_IOPORT_MAP 45f163977dSChristoph Hellwig def_bool y 46f163977dSChristoph Hellwig 47f163977dSChristoph Hellwigconfig ISA 48f163977dSChristoph Hellwig bool 49f163977dSChristoph Hellwig 50f163977dSChristoph Hellwigconfig SBUS 51f163977dSChristoph Hellwig bool 52f163977dSChristoph Hellwig 53f163977dSChristoph Hellwigconfig TRACE_IRQFLAGS_SUPPORT 54f163977dSChristoph Hellwig bool 55f163977dSChristoph Hellwig default y 56f163977dSChristoph Hellwig 57f163977dSChristoph Hellwigconfig LOCKDEP_SUPPORT 58f163977dSChristoph Hellwig bool 59f163977dSChristoph Hellwig default y 60f163977dSChristoph Hellwig 61f163977dSChristoph Hellwigconfig STACKTRACE_SUPPORT 62f163977dSChristoph Hellwig bool 63f163977dSChristoph Hellwig default y 64f163977dSChristoph Hellwig select STACKTRACE 65f163977dSChristoph Hellwig 66f163977dSChristoph Hellwigconfig GENERIC_CALIBRATE_DELAY 67f163977dSChristoph Hellwig bool 68f163977dSChristoph Hellwig default y 69f163977dSChristoph Hellwig 70f163977dSChristoph Hellwigconfig HZ 71f163977dSChristoph Hellwig int 72f163977dSChristoph Hellwig default 100 73f163977dSChristoph Hellwig 74f163977dSChristoph Hellwigconfig NR_CPUS 75f163977dSChristoph Hellwig int 76f163977dSChristoph Hellwig range 1 1 77f163977dSChristoph Hellwig default 1 78f163977dSChristoph Hellwig 7979b05c1fSChristoph Hellwigsource "arch/$(HEADER_ARCH)/um/Kconfig" 80f163977dSChristoph Hellwig 81730586ffSIgnat Korchaginconfig MAY_HAVE_RUNTIME_DEPS 8233631793SBrendan Higgins bool 8333631793SBrendan Higgins 84f163977dSChristoph Hellwigconfig STATIC_LINK 85f163977dSChristoph Hellwig bool "Force a static link" 86730586ffSIgnat Korchagin depends on CC_CAN_LINK_STATIC_NO_RUNTIME_DEPS || !MAY_HAVE_RUNTIME_DEPS 87f163977dSChristoph Hellwig help 88f163977dSChristoph Hellwig This option gives you the ability to force a static link of UML. 89f163977dSChristoph Hellwig Normally, UML is linked as a shared binary. This is inconvenient for 90f163977dSChristoph Hellwig use in a chroot jail. So, if you intend to run UML inside a chroot, 91f163977dSChristoph Hellwig you probably want to say Y here. 92f163977dSChristoph Hellwig Additionally, this option enables using higher memory spaces (up to 93f163977dSChristoph Hellwig 2.75G) for UML. 94f163977dSChristoph Hellwig 9533631793SBrendan Higgins NOTE: This option is incompatible with some networking features which 9633631793SBrendan Higgins depend on features that require being dynamically loaded (like NSS). 9733631793SBrendan Higgins 98f163977dSChristoph Hellwigconfig LD_SCRIPT_STATIC 99f163977dSChristoph Hellwig bool 100f163977dSChristoph Hellwig default y 101f163977dSChristoph Hellwig depends on STATIC_LINK 102f163977dSChristoph Hellwig 103f163977dSChristoph Hellwigconfig LD_SCRIPT_DYN 104f163977dSChristoph Hellwig bool 105f163977dSChristoph Hellwig default y 106f163977dSChristoph Hellwig depends on !LD_SCRIPT_STATIC 107f163977dSChristoph Hellwig select MODULE_REL_CRCS if MODVERSIONS 108f163977dSChristoph Hellwig 109f163977dSChristoph Hellwigconfig HOSTFS 110f163977dSChristoph Hellwig tristate "Host filesystem" 111f163977dSChristoph Hellwig help 112f163977dSChristoph Hellwig While the User-Mode Linux port uses its own root file system for 113f163977dSChristoph Hellwig booting and normal file access, this module lets the UML user 114f163977dSChristoph Hellwig access files stored on the host. It does not require any 115f163977dSChristoph Hellwig network connection between the Host and UML. An example use of 116f163977dSChristoph Hellwig this might be: 117f163977dSChristoph Hellwig 118f163977dSChristoph Hellwig mount none /tmp/fromhost -t hostfs -o /tmp/umlshare 119f163977dSChristoph Hellwig 120f163977dSChristoph Hellwig where /tmp/fromhost is an empty directory inside UML and 121f163977dSChristoph Hellwig /tmp/umlshare is a directory on the host with files the UML user 122f163977dSChristoph Hellwig wishes to access. 123f163977dSChristoph Hellwig 124f163977dSChristoph Hellwig For more information, see 125f163977dSChristoph Hellwig <http://user-mode-linux.sourceforge.net/hostfs.html>. 126f163977dSChristoph Hellwig 127f163977dSChristoph Hellwig If you'd like to be able to work with files stored on the host, 128f163977dSChristoph Hellwig say Y or M here; otherwise say N. 129f163977dSChristoph Hellwig 130f163977dSChristoph Hellwigconfig MCONSOLE 131f163977dSChristoph Hellwig bool "Management console" 132f163977dSChristoph Hellwig depends on PROC_FS 133f163977dSChristoph Hellwig default y 134f163977dSChristoph Hellwig help 135f163977dSChristoph Hellwig The user mode linux management console is a low-level interface to 136f163977dSChristoph Hellwig the kernel, somewhat like the i386 SysRq interface. Since there is 137f163977dSChristoph Hellwig a full-blown operating system running under every user mode linux 138f163977dSChristoph Hellwig instance, there is much greater flexibility possible than with the 139f163977dSChristoph Hellwig SysRq mechanism. 140f163977dSChristoph Hellwig 141f163977dSChristoph Hellwig If you answer 'Y' to this option, to use this feature, you need the 142f163977dSChristoph Hellwig mconsole client (called uml_mconsole) which is present in CVS in 143f163977dSChristoph Hellwig 2.4.5-9um and later (path /tools/mconsole), and is also in the 144f163977dSChristoph Hellwig distribution RPM package in 2.4.6 and later. 145f163977dSChristoph Hellwig 146f163977dSChristoph Hellwig It is safe to say 'Y' here. 147f163977dSChristoph Hellwig 148f163977dSChristoph Hellwigconfig MAGIC_SYSRQ 149f163977dSChristoph Hellwig bool "Magic SysRq key" 150f163977dSChristoph Hellwig depends on MCONSOLE 151f163977dSChristoph Hellwig help 152f163977dSChristoph Hellwig If you say Y here, you will have some control over the system even 153f163977dSChristoph Hellwig if the system crashes for example during kernel debugging (e.g., you 154f163977dSChristoph Hellwig will be able to flush the buffer cache to disk, reboot the system 155f163977dSChristoph Hellwig immediately or dump some status information). A key for each of the 156f163977dSChristoph Hellwig possible requests is provided. 157f163977dSChristoph Hellwig 158f163977dSChristoph Hellwig This is the feature normally accomplished by pressing a key 159f163977dSChristoph Hellwig while holding SysRq (Alt+PrintScreen). 160f163977dSChristoph Hellwig 161f163977dSChristoph Hellwig On UML, this is accomplished by sending a "sysrq" command with 162f163977dSChristoph Hellwig mconsole, followed by the letter for the requested command. 163f163977dSChristoph Hellwig 164f163977dSChristoph Hellwig The keys are documented in <file:Documentation/admin-guide/sysrq.rst>. Don't say Y 165f163977dSChristoph Hellwig unless you really know what this hack does. 166f163977dSChristoph Hellwig 167f163977dSChristoph Hellwigconfig KERNEL_STACK_ORDER 168f163977dSChristoph Hellwig int "Kernel stack size order" 1695c2ffce1SAnton Ivanov default 2 if 64BIT 1705c2ffce1SAnton Ivanov range 2 10 if 64BIT 1715c2ffce1SAnton Ivanov default 1 if !64BIT 172f163977dSChristoph Hellwig help 173f163977dSChristoph Hellwig This option determines the size of UML kernel stacks. They will 174f163977dSChristoph Hellwig be 1 << order pages. The default is OK unless you're running Valgrind 175f163977dSChristoph Hellwig on UML, in which case, set this to 3. 1765c2ffce1SAnton Ivanov It is possible to reduce the stack to 1 for 64BIT and 0 for 32BIT on 1775c2ffce1SAnton Ivanov older (pre-2017) CPUs. It is not recommended on newer CPUs due to the 1785c2ffce1SAnton Ivanov increase in the size of the state which needs to be saved when handling 1795c2ffce1SAnton Ivanov signals. 180f163977dSChristoph Hellwig 181f163977dSChristoph Hellwigconfig MMAPPER 182f163977dSChristoph Hellwig tristate "iomem emulation driver" 183f163977dSChristoph Hellwig help 184f163977dSChristoph Hellwig This driver allows a host file to be used as emulated IO memory inside 185f163977dSChristoph Hellwig UML. 186f163977dSChristoph Hellwig 187f163977dSChristoph Hellwigconfig PGTABLE_LEVELS 188f163977dSChristoph Hellwig int 189f163977dSChristoph Hellwig default 3 if 3_LEVEL_PGTABLES 190f163977dSChristoph Hellwig default 2 191f163977dSChristoph Hellwig 19206503870SJohannes Bergconfig UML_TIME_TRAVEL_SUPPORT 19306503870SJohannes Berg bool 19406503870SJohannes Berg prompt "Support time-travel mode (e.g. for test execution)" 195d65197adSJohannes Berg # inf-cpu mode is incompatible with the benchmarking 196d65197adSJohannes Berg depends on !RAID6_PQ_BENCHMARK 1974b786e24SJohannes Berg depends on !SMP 19806503870SJohannes Berg help 19906503870SJohannes Berg Enable this option to support time travel inside the UML instance. 20006503870SJohannes Berg 20106503870SJohannes Berg After enabling this option, two modes are accessible at runtime 20206503870SJohannes Berg (selected by the kernel command line), see the kernel's command- 20306503870SJohannes Berg line help for more details. 20406503870SJohannes Berg 20506503870SJohannes Berg It is safe to say Y, but you probably don't need this. 20606503870SJohannes Berg 207f163977dSChristoph Hellwigendmenu 208f163977dSChristoph Hellwig 2099bea1801SChristoph Hellwigsource "arch/um/drivers/Kconfig" 21092dcd3d3SJohannes Berg 21192dcd3d3SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE 21292dcd3d3SJohannes Berg def_bool y 21392dcd3d3SJohannes Berg 21492dcd3d3SJohannes Bergsource "kernel/power/Kconfig" 215