Kconfig 7.11 KB
Newer Older
1 2 3 4
config USERMODE
	bool
	default y

5 6 7 8 9
# XXX: does UM have a mmu/swap?
config MMU
	bool
	default y

10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
mainmenu "Linux/Usermode Kernel Configuration"

config ISA
	bool

config SBUS
	bool

config PCI
	bool

config UID16
	bool
	default y

config RWSEM_GENERIC_SPINLOCK
	bool
	default y

29
menu "UML-specific options"
30

Jeff Dike's avatar
Jeff Dike committed
31
config MODE_TT
32
	bool "Tracing thread support"
Jeff Dike's avatar
Jeff Dike committed
33
	default y
34 35 36 37 38 39 40
	help
	This option controls whether tracing thread support is compiled
	into UML.  Normally, this should be set to Y.  If you intend to
	use only skas mode (and the host has the skas patch applied to it), 
	then it is OK to say N here.

config STATIC_LINK
41
	bool "Force a static link"
42 43 44 45 46 47 48 49 50
	default n
	depends on !MODE_TT
	help
	If CONFIG_MODE_TT is disabled, then this option gives you the ability
	to force a static link of UML.  Normally, if only skas mode is built
	in to UML, it will be linked as a shared binary.  This is inconvenient
	for use in a chroot jail.  So, if you intend to run UML inside a 
	chroot, and you disable CONFIG_MODE_TT, you probably want to say Y
	here.
Jeff Dike's avatar
Jeff Dike committed
51 52

config MODE_SKAS
53
	bool "Separate Kernel Address Space support"
Jeff Dike's avatar
Jeff Dike committed
54
	default y
55
	help
56 57 58 59 60
	This option controls whether skas (separate kernel address space)
	support is compiled in.  If you have applied the skas patch to the
	host, then you certainly want to say Y here (and consider saying N
	to CONFIG_MODE_TT).  Otherwise, it is safe to say Y.  Disabling this
	option will shrink the UML binary slightly.
61 62 63 64

config NET
	bool "Networking support"

65
source "fs/Kconfig.binfmt"
66 67 68

config HOSTFS
	tristate "Host filesystem"
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
	help
        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.

88 89 90

config MCONSOLE
	bool "Management console"
91 92 93 94 95 96 97 98 99 100 101 102 103
	help
        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.
104 105 106 107 108 109 110 111 112 113

config MAGIC_SYSRQ
	bool "Magic SysRq key"
	depends on MCONSOLE

config HOST_2G_2G
	bool "2G/2G host address space split"

config UML_SMP
	bool "Symmetric multi-processing support"
114 115 116 117 118 119 120 121 122 123
	help
        This option enables UML SMP support.  UML implements virtual SMP by
        allowing as many processes to run simultaneously on the host as
        there are virtual processors configured.  Obviously, if the host is
        a uniprocessor, those processes will timeshare, but, inside UML,
        will appear to be running simultaneously.  If the host is a
        multiprocessor, then UML processes may run simultaneously, depending
        on the host scheduler.
        CONFIG_SMP will be set to whatever this option is set to.
        It is safe to leave this unchanged.
124 125 126 127 128 129 130 131 132 133 134 135 136

config SMP
	bool
	default UML_SMP

config NR_CPUS
	int "Maximum number of CPUs (2-32)"
	depends on SMP
	default "32"

config NEST_LEVEL
	int "Nesting level"
	default "0"
137 138 139 140 141 142 143 144 145 146 147 148
	help
        This is set to the number of layers of UMLs that this UML will be run
        in.  Normally, this is zero, meaning that it will run directly on the
        host.  Setting it to one will build a UML that can run inside a UML
        that is running on the host.  Generally, if you intend this UML to run
        inside another UML, set CONFIG_NEST_LEVEL to one more than the host 
        UML.

        Note that if the hosting UML has its CONFIG_KERNEL_HALF_GIGS set to 
        greater than one, then the guest UML should have its CONFIG_NEST_LEVEL 
        set to the host's CONFIG_NEST_LEVEL + CONFIG_KERNEL_HALF_GIGS.
        Only change this if you are running nested UMLs.
149 150 151 152

config KERNEL_HALF_GIGS
	int "Kernel address space size (in .5G units)"
	default "1"
153 154 155 156 157
	help
        This determines the amount of address space that UML will allocate for
        its own, measured in half Gigabyte units.  The default is 1.
        Change this only if you need to boot UML with an unusually large amount
        of physical memory.
158 159 160 161

config HIGHMEM
	bool "Highmem support"

162 163 164 165 166 167 168 169
config KERNEL_STACK_ORDER
	int "Kernel stack size order"
	default 2
	help
	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.

170 171
endmenu

172
source "init/Kconfig"
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187

source "arch/um/Kconfig_char"

source "arch/um/Kconfig_block"

config NETDEVICES
	bool
	default NET

source "arch/um/Kconfig_net"

source "net/Kconfig"

source "fs/Kconfig"

188 189 190 191
source "security/Kconfig"

source "crypto/Kconfig"

192
source "lib/Kconfig"
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218

menu "SCSI support"

config SCSI
	tristate "SCSI support"

# This gives us free_dma, which scsi.c wants.
config GENERIC_ISA_DMA
	bool
	depends on SCSI
	default y

source "arch/um/Kconfig_scsi"

endmenu

source "drivers/md/Kconfig"

source "drivers/mtd/Kconfig"


menu "Kernel hacking"

config DEBUG_SLAB
	bool "Debug memory allocations"

219 220 221
config DEBUG_SPINLOCK
	bool "Debug spinlocks usage"

222 223
config DEBUGSYM
	bool "Enable kernel debugging symbols"
224 225 226 227 228 229 230 231
	help
        When this is enabled, the User-Mode Linux binary will include
        debugging symbols.  This enlarges the binary by a few megabytes,
        but aids in tracking down kernel problems in UML.  It is required
        if you intend to do any kernel development.

        If you're truly short on disk space or don't expect to report any
        bugs back to the UML developers, say N, otherwise say Y.
232

233 234 235 236
config FRAME_POINTER
	bool
	default y if DEBUGSYM

237 238 239 240 241 242 243
config PT_PROXY
	bool "Enable ptrace proxy"
	depends on XTERM_CHAN && DEBUGSYM

config GPROF
	bool "Enable gprof support"
	depends on DEBUGSYM
244 245 246 247 248 249 250 251 252
	help
        This allows profiling of a User-Mode Linux kernel with the gprof
        utility.

        See <http://user-mode-linux.sourceforge.net/gprof.html> for more
        details.

        If you're involved in UML kernel development and want to use gprof,
        say Y.  If you're unsure, say N.
253 254 255 256

config GCOV
	bool "Enable gcov support"
	depends on DEBUGSYM
257 258 259 260 261 262 263 264 265
	help
        This option allows developers to retrieve coverage data from a UML
        session.

        See <http://user-mode-linux.sourceforge.net/gcov.html> for more
        details.

        If you're involved in UML kernel development and want to use gcov,
        say Y.  If you're unsure, say N.
266 267 268

endmenu