]> git.saurik.com Git - apple/xnu.git/blame - config/MASTER
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / config / MASTER
CommitLineData
1c79356b
A
1#
2# Mach Operating System
3# Copyright (c) 1986 Carnegie-Mellon University
d9a64523 4# Copyright 2001-2018 Apple Inc.
fe8ab488 5#
1c79356b
A
6# All rights reserved. The CMU software License Agreement
7# specifies the terms and conditions for use and redistribution.
cb323159 8#
1c79356b
A
9#######################################################################
10#
11# Master machine independent configuration file.
12#
13# Specific configuration files are created based on this and
14# the machine specific master file using the doconf script.
15#
16# Any changes to the master configuration files will affect all
17# other configuration files based upon it.
18#
19#######################################################################
20#
21# To build a configuration, execute "doconf <configuration>."
22# Configurations are specified in the "Configurations:" section
23# of the MASTER and MASTER.* files as follows:
24#
25# <configuration> = [ <attribute0> <attribute1> ... <attributeN> ]
26#
27# Lines in the MASTER and MASTER.* files are selected based on
28# the attribute selector list, found in a comment at the end of
29# the line. This is a list of attributes separated by commas.
30# The "!" operator selects the line if none of the attributes are
31# specified.
32#
33# For example:
34#
35# <foo,bar> selects a line if "foo" or "bar" are specified.
36# <!foo,bar> selects a line if neither "foo" nor "bar" is
37# specified.
38#
39# Lines with no attributes specified are selected for all
40# configurations.
41#
42#######################################################################
43#
1c79356b
A
44# SYSTEM SIZE CONFIGURATION (select exactly one)
45#
46# xlarge = extra large scale system configuration
47# large = large scale system configuration
48# medium = medium scale system configuration
49# small = small scale system configuration
50# xsmall = extra small scale system configuration
cb323159 51# bsmall = special extra small scale system configuration
1c79356b
A
52#
53#######################################################################
1c79356b 54#
1c79356b 55
3e170ce0 56options INET # # <inet>
1c79356b
A
57options HW_AST # Hardware ast support # <hw_ast>
58options HW_FOOTPRINT # Cache footprint support # <hw_foot>
2d21ac55 59
1c79356b 60options MACH # Standard Mach features # <mach>
1c79356b 61options MACH_COMPAT # Vendor syscall compatibility # <mach>
1c79356b 62options MACH_FASTLINK # Fast symbolic links
1c79356b
A
63options MACH_HOST # Mach host (resource alloc.) # <host>
64options MACH_IPC_COMPAT # Enable old IPC interface # <ipc_compat>
1c79356b 65options MACH_IPC_TEST # Testing code/printfs # <ipc_test>
39037602 66options MACH_FLIPC # Fast-Local IPC # <mach_flipc>
1c79356b
A
67options MACH_NP # Mach IPC support # <np>
68options MACH_NBC # No buffer cache # <nbc>
1c79356b
A
69options MACH_NET # Fast network access # <mach_net>
70options MACH_XP # external pager support # <xp>
cb323159 71options NO_DIRECT_RPC # for untyped mig servers #
1c79356b 72options LOOP # loopback support # <loop>
1c79356b 73options VLAN # # <vlan>
cb323159 74options SIXLOWPAN # 6LoWPAN support # <sixlowpan>
91447636 75options BOND # # <bond>
5ba3f43e 76options IF_FAKE # # <if_fake>
cb323159 77options IF_HEADLESS # # <if_headless>
fe8ab488 78options AH_ALL_CRYPTO # AH all crypto algs # <ah_all_crypto>
b0d623f7 79options PF # Packet Filter # <pf>
3e170ce0 80options PF_ECN # PF use ECN marking # <pf_ecn>
b0d623f7 81options PFLOG # PF log interface # <pflog>
39236c6e 82options MEASURE_BW # interface bandwidth measurement # <measure_bw>
91447636 83options DUMMYNET # dummynet support # <dummynet>
2d21ac55 84options TRAFFIC_MGT # traffic management support # <traffic_mgt>
1c79356b 85options MULTICAST # Internet Protocol Class-D $
9bccf70c 86options TCPDEBUG # TCP debug # <tcpdebug>
9bccf70c 87options ICMP_BANDLIM # ICMP bandwidth limiting sysctl
2d21ac55 88options IFNET_INPUT_SANITY_CHK # allow dlil/ifnet input sanity check # <ifnet_input_chk>
39236c6e
A
89options MULTIPATH # Multipath domain # <multipath>
90options MPTCP # Multipath TCP # <mptcp>
3e170ce0
A
91options SYSV_SEM # SVID semaphores # <sysv_sem>
92options SYSV_MSG # SVID messages # <sysv_msg>
93options SYSV_SHM # SVID shared mem # <sysv_shm>
94options PSYNCH # pthread synch # <psynch>
39236c6e 95options FLOW_DIVERT # <flow_divert>
fe8ab488
A
96options NECP # <necp>
97options CONTENT_FILTER # # <content_filter>
98options PACKET_MANGLER # # <packet_mangler>
cb323159 99options SIXLOWPAN # # <sixlowpan>
2d21ac55 100# secure_kernel - secure kernel from user programs
cb323159 101options SECURE_KERNEL # <secure_kernel>
1c79356b 102
b0d623f7
A
103options OLD_SEMWAIT_SIGNAL # old semwait_signal handler
104
1c79356b 105#
cb323159 106# 4.4 general kernel
1c79356b 107#
f427ee49 108options SOCKETS # socket support # <inet>
3e170ce0 109options DIAGNOSTIC # diagnostics # <diagnostic>
fe8ab488 110options PROFILE # kernel profiling # <profile>
2d21ac55 111options SENDFILE # sendfile # <sendfile>
f427ee49 112options NETWORKING # networking layer # <inet>
2d21ac55
A
113options CONFIG_FSE # file system events # <config_fse>
114options CONFIG_IMAGEBOOT # local image boot # <config_imageboot>
cb323159 115options CONFIG_LOCKERBOOT # locker boot # <config_lockerboot>
2d21ac55 116options CONFIG_MBUF_JUMBO # jumbo cluster pool # <config_mbuf_jumbo>
cb323159
A
117options CONFIG_IMAGEBOOT_IMG4 # authenticate image with AppleImage4 # <config_imageboot_img4>
118options CONFIG_IMAGEBOOT_CHUNKLIST # authenticate image with a chunk list # <config_imageboot_chunklist>
593a1d5f
A
119
120options CONFIG_WORKQUEUE # <config_workqueue>
d9a64523 121options CONFIG_WORKLOOP_DEBUG # <config_workloop_debug>
1c79356b
A
122
123#
cb323159 124# 4.4 filesystems
1c79356b 125#
3e170ce0 126options MOCKFS # Boot from an executable # <mockfs>
1c79356b 127options FIFO # fifo support # <fifo>
1c79356b 128options FDESC # fdesc_fs support # <fdesc>
1c79356b 129options DEVFS # devfs support # <devfs>
490019cf 130options ROUTEFS # routefs support # <routefs>
39037602 131options NULLFS # nullfs support # <nullfs>
f427ee49 132options BINDFS # bindfs support # <bindfs>
39037602 133options FS_COMPRESSION # fs compression # <fs_compression>
3e170ce0 134options CONFIG_DEV_KMEM # /dev/kmem device for reading KVA # <config_dev_kmem>
2d21ac55
A
135
136#
137# file system features
138#
139options QUOTA # file system quotas # <quota>
2d21ac55 140options NAMEDSTREAMS # named stream vnop support # <namedstreams>
39236c6e 141options CONFIG_APPLEDOUBLE # apple double support # <config_appledouble>
2d21ac55 142options CONFIG_VOLFS # volfs path support (legacy) # <config_volfs>
b7266188 143options CONFIG_IMGSRC_ACCESS # source of imageboot dmg # <config_imgsrc_access>
6d2010ae 144options CONFIG_TRIGGERS # trigger vnodes # <config_triggers>
316670eb
A
145options CONFIG_EXT_RESOLVER # e.g. memberd # <config_ext_resolver>
146options CONFIG_SEARCHFS # searchfs syscall support # <config_searchfs>
813fb2f6 147options CONFIG_MNT_SUID # allow suid binaries # <config_mnt_suid>
d9a64523 148options CONFIG_MNT_ROOTSNAP # allow rooting from snapshot # <config_mnt_rootsnap>
cb323159
A
149options CONFIG_ROSV_STARTUP # allow read-only system volume startup # <config_rosv_startup>
150options CONFIG_FIRMLINKS # support "firmlinks" # <config_firmlinks>
151options CONFIG_MOUNT_VM # mount VM volume on startup # <config_mount_vm>
f427ee49 152options CONFIG_MOUNT_PREBOOTRECOVERY # mount Preboot and/or Recovery volume on startup # <config_mount_prebootrecovery>
cb323159 153options CONFIG_DATALESS_FILES # support dataless file materialization # <config_dataless_files>
f427ee49 154options CONFIG_BASESYSTEMROOT # mount BaseSystem as initial root filesystem on some kinds of startup # <config_basesystemroot>
1c79356b
A
155
156#
157# NFS support
158#
2d21ac55
A
159options NFSCLIENT # Be an NFS client # <nfsclient>
160options NFSSERVER # Be an NFS server # <nfsserver>
cb323159
A
161options CONFIG_NFS_GSS # Support NFS GSSAPI # <config_nfs_gss>
162options CONFIG_NFS4 # Use NFSv4 # <config_nfs4>
163options CONFIG_NETBOOT # network booting (requires NFSCLIENT) # <config_netboot>
1c79356b 164
1c79356b
A
165#
166# Machine Independent Apple Features
167#
3e170ce0 168profile # build a profiling kernel # <profile>
1c79356b 169
cb323159 170#
9bccf70c 171# IPv6 Support
cb323159 172#
3e170ce0
A
173options IPSEC # IP security # <ipsec>
174options IPSEC_ESP # IP security # <ipsec>
9bccf70c 175
3e170ce0
A
176pseudo-device gif 1 # <gif>
177pseudo-device dummy 2 # <dummy>
178pseudo-device stf 1 # <stf>
9bccf70c 179
3e170ce0
A
180options CRYPTO # <ipsec,crypto>
181options CRYPTO_SHA2 # <crypto_sha2>
182options ENCRYPTED_SWAP # <encrypted_swap>
2d21ac55 183
d9a64523
A
184options CONFIG_IMG4 # <config_img4>
185
3e170ce0 186options ZLIB # inflate/deflate support # <zlib>
cb323159 187options ZLIBC # inflate/deflate support # <zlibc>
1c79356b 188
3e170ce0 189options IF_BRIDGE # <if_bridge>
b7266188 190
2d21ac55 191#
cb323159 192# configurable kernel event related resources
2d21ac55
A
193#
194options CONFIG_KN_HASHSIZE=64 # <medium,large,xlarge>
195options CONFIG_KN_HASHSIZE=48 # <small,xsmall>
196options CONFIG_KN_HASHSIZE=20 # <bsmall>
197
198#
cb323159
A
199# configurable vfs related resources
200# CONFIG_VNODES - used to pre allocate vnode related resources
2d21ac55
A
201# CONFIG_NC_HASH - name cache hash table allocation
202# CONFIG_VFS_NAMES - name strings
203#
cb323159
A
204# 263168 magic number for medium CONFIG_VNODES is based on memory
205# Number vnodes is (memsize/64k) + 1024
2d21ac55 206# This is the calculation that is used by launchd in tiger
cb323159 207# we are clipping the max based on 16G
2d21ac55
A
208# ie ((16*1024*1024*1024)/(64 *1024)) + 1024 = 263168;
209
210options CONFIG_VNODES=263168 # <large,xlarge>
211options CONFIG_VNODES=263168 # <medium>
212options CONFIG_VNODES=10240 # <small>
3e170ce0 213options CONFIG_VNODES=750 # <bsmall>
2d21ac55 214
2d21ac55
A
215options CONFIG_NC_HASH=5120 # <large,xlarge>
216options CONFIG_NC_HASH=4096 # <medium>
217options CONFIG_NC_HASH=2048 # <small,xsmall>
218options CONFIG_NC_HASH=1024 # <bsmall>
219
220options CONFIG_VFS_NAMES=5120 # <large,xlarge>
221options CONFIG_VFS_NAMES=4096 # <medium>
222options CONFIG_VFS_NAMES=3072 # <small,xsmall>
223options CONFIG_VFS_NAMES=2048 # <bsmall>
224
b7266188
A
225options CONFIG_MAX_CLUSTERS=8 # <xlarge,large,medium>
226options CONFIG_MAX_CLUSTERS=4 # <small,xsmall,bsmall>
227
2d21ac55 228#
cb323159 229# configurable options for minumum number of buffers for kernel memory
2d21ac55
A
230#
231options CONFIG_MIN_NBUF=256 # <medium,large,xlarge>
232options CONFIG_MIN_NBUF=128 # <small>
233options CONFIG_MIN_NBUF=80 # <xsmall>
234options CONFIG_MIN_NBUF=64 # <bsmall>
235
236options CONFIG_MIN_NIOBUF=128 # <medium,large,xlarge>
237options CONFIG_MIN_NIOBUF=64 # <xsmall,small>
238options CONFIG_MIN_NIOBUF=32 # <bsmall>
239
240#
241# set maximum space used for packet buffers
242#
3e170ce0
A
243options CONFIG_NMBCLUSTERS="((1024 * 1024) / MCLBYTES)" # <large,xlarge>
244options CONFIG_NMBCLUSTERS="((1024 * 512) / MCLBYTES)" # <medium>
245options CONFIG_NMBCLUSTERS="((1024 * 256) / MCLBYTES)" # <bsmall,xsmall,small>
2d21ac55
A
246
247#
248# Configure size of TCP hash table
249#
250options CONFIG_TCBHASHSIZE=4096 # <medium,large,xlarge>
251options CONFIG_TCBHASHSIZE=128 # <xsmall,small,bsmall>
252
316670eb
A
253#
254# Configure bandwidth limiting sysctl
255#
256options CONFIG_ICMP_BANDLIM=250 # <medium,large,xlarge>
257options CONFIG_ICMP_BANDLIM=50 # <xsmall,small,bsmall>
258
2d21ac55 259#
cb323159 260# configurable async IO options
2d21ac55
A
261# CONFIG_AIO_MAX - system wide limit of async IO requests.
262# CONFIG_AIO_PROCESS_MAX - process limit of async IO requests.
263# CONFIG_AIO_THREAD_COUNT - number of async IO worker threads created.
264#
3e170ce0
A
265options CONFIG_AIO_MAX=360 # <xlarge>
266options CONFIG_AIO_MAX=180 # <large>
2d21ac55
A
267options CONFIG_AIO_MAX=90 # <medium>
268options CONFIG_AIO_MAX=45 # <small>
269options CONFIG_AIO_MAX=20 # <xsmall>
270options CONFIG_AIO_MAX=10 # <bsmall>
271
272options CONFIG_AIO_PROCESS_MAX=64 # <xlarge>
273options CONFIG_AIO_PROCESS_MAX=32 # <large>
274options CONFIG_AIO_PROCESS_MAX=16 # <medium>
275options CONFIG_AIO_PROCESS_MAX=12 # <small>
276options CONFIG_AIO_PROCESS_MAX=8 # <xsmall>
277options CONFIG_AIO_PROCESS_MAX=4 # <bsmall>
278
3e170ce0 279options CONFIG_AIO_THREAD_COUNT=16 # <xlarge>
2d21ac55
A
280options CONFIG_AIO_THREAD_COUNT=8 # <large>
281options CONFIG_AIO_THREAD_COUNT=4 # <medium>
282options CONFIG_AIO_THREAD_COUNT=3 # <small>
283options CONFIG_AIO_THREAD_COUNT=2 # <xsmall,bsmall>
284
3e170ce0
A
285options CONFIG_MAXVIFS=32 # <medium,large,xlarge>
286options CONFIG_MAXVIFS=16 # <small,xsmall>
287options CONFIG_MAXVIFS=2 # <bsmall>
2d21ac55
A
288
289options CONFIG_MFCTBLSIZ=256 # <medium,large,xlarge>
290options CONFIG_MFCTBLSIZ=128 # <small,xsmall>
291options CONFIG_MFCTBLSIZ=16 # <bsmall>
292
6d2010ae
A
293#
294# configurable kernel message buffer size
295#
f427ee49
A
296options CONFIG_MSG_BSIZE_REL=4096 # <msgb_small>
297options CONFIG_MSG_BSIZE_DEV=4096 # <msgb_small>
298options CONFIG_MSG_BSIZE_REL=16384 # <msgb_large>
299options CONFIG_MSG_BSIZE_DEV=131072 # <msgb_large>
5ba3f43e
A
300options CONFIG_MSG_BSIZE=CONFIG_MSG_BSIZE_REL # <!development,debug>
301options CONFIG_MSG_BSIZE=CONFIG_MSG_BSIZE_DEV # <development,debug>
6d2010ae 302
3e170ce0
A
303#
304# maximum size of the per-process Mach IPC table
305#
306options CONFIG_IPC_TABLE_ENTRIES_STEPS=64 # 137898 entries # <bsmall,small,xsmall>
307options CONFIG_IPC_TABLE_ENTRIES_STEPS=256 # 300714 entries # <medium,large,xlarge>
308
2d21ac55
A
309#
310# configurable kernel - use these options to strip strings from panic
311# and printf calls.
2d21ac55
A
312# no_printf_str - saves around 45K of kernel footprint.
313#
2d21ac55
A
314options CONFIG_NO_PRINTF_STRINGS # <no_printf_str>
315options CONFIG_NO_KPRINTF_STRINGS # <no_kprintf_str>
316
f427ee49
A
317# support vsprintf (deprecated in favor of vsnprintf)
318options CONFIG_VSPRINTF # <vsprintf>
319
d9a64523
A
320#
321# configurable kernel - general switch to say we are building for an
322# embedded device
323#
324options CONFIG_EMBEDDED # <config_embedded>
325
f427ee49
A
326options CONFIG_ARROW # <config_arrow>
327
fe8ab488 328
b7266188
A
329# support dynamic signing of code
330#
331options CONFIG_DYNAMIC_CODE_SIGNING # <dynamic_codesigning>
332
cb323159 333# enforce library validation on all processes.
fe8ab488
A
334#
335options CONFIG_ENFORCE_LIBRARY_VALIDATION # <config_library_validation>
336
f427ee49
A
337# support loading a second static trust cache
338#
339options CONFIG_SECOND_STATIC_TRUST_CACHE # <second_static_trust_cache>
340
341# support supplemental signatures
342#
343options CONFIG_SUPPLEMENTAL_SIGNATURES # <config_supplemental_signatures>
344
fe8ab488
A
345#
346# code decryption... used on embedded for app protection, DSMOS on desktop
347#
3e170ce0 348options CONFIG_CODE_DECRYPTION # <config_code_decryption>
fe8ab488 349
d1ecb069
A
350#
351# User Content Protection, used on embedded
352#
3e170ce0 353options CONFIG_PROTECT # <config_protect>
d1ecb069 354
d9a64523
A
355#allow write-protection of key page
356options CONFIG_KEYPAGE_WP # <config_keypage_wp>
357
cb323159
A
358#
359# allow vm_pageout_scan to dynamically adjust its priority based on priorities of waiters
360#
361options CONFIG_VPS_DYNAMIC_PRIO # <vps_dynamic_prio>
362
6d2010ae 363#
316670eb
A
364# enable per-process memory priority tracking
365#
3e170ce0 366options CONFIG_MEMORYSTATUS # <memorystatus>
316670eb 367
f427ee49
A
368#
369# enable per-process dirty-status tracking
370#
371options CONFIG_DIRTYSTATUS_TRACKING # <dirtystatus_tracking>
316670eb
A
372#
373# enable jetsam - used on embedded
374#
3e170ce0
A
375options CONFIG_JETSAM # <jetsam>
376
39037602
A
377#
378# enable new link table implementation stats/debugging
379# (adds mesaureable overhead)
380#
381options CONFIG_LTABLE_STATS # <config_ltable_stats>
382options CONFIG_LTABLE_DEBUG # <config_ltable_debug>
383
3e170ce0
A
384#
385# enable new wait queue implementation stats / debugging
386#
387options CONFIG_WAITQ_STATS # <config_waitq_stats>
388options CONFIG_WAITQ_DEBUG # <config_waitq_debug>
316670eb
A
389
390#
391# enable freezing of suspended processes - used on embedded
6d2010ae 392#
3e170ce0 393options CONFIG_FREEZE # <freeze>
6d2010ae 394
3e170ce0 395options CHECK_CS_VALIDATION_BITMAP # <config_cs_validation_bitmap>
593a1d5f 396
f427ee49
A
397#
398# enable physical writes accounting
399#
400options CONFIG_PHYS_WRITE_ACCT # <phys_write_acct>
401
fe8ab488
A
402#
403# enable detectiion of file cache thrashing - used on platforms with
404# dynamic VM compression enabled
405#
3e170ce0 406options CONFIG_PHANTOM_CACHE # <phantom_cache>
fe8ab488 407
316670eb
A
408#
409# memory pressure event support
316670eb
A
410#
411options VM_PRESSURE_EVENTS # <vm_pressure_events>
412
39037602
A
413options CONFIG_SECLUDED_MEMORY # <config_secluded_memory>
414
415options CONFIG_BACKGROUND_QUEUE # <config_background_queue>
416
d9a64523
A
417#
418# Ledger features
419#
420options CONFIG_LEDGER_INTERVAL_MAX # <config_ledger_interval_max>
421
fe8ab488
A
422#
423# I/O Scheduling
424#
425options CONFIG_IOSCHED # <config_iosched>
426
39037602
A
427#
428# Accounting for I/O usage
429#
430options CONFIG_IO_ACCOUNTING # <config_io_accounting>
431
39236c6e
A
432#
433# Enable inheritance of importance through specially marked mach ports and for file locks
434# For now debug is enabled wherever inheritance is
435#
436options IMPORTANCE_INHERITANCE # <importance_inheritance>
5ba3f43e
A
437options IMPORTANCE_TRACE # <importance_trace>
438options IMPORTANCE_DEBUG # <importance_debug>
39236c6e 439
3e170ce0 440options CONFIG_TELEMETRY # <config_telemetry>
39236c6e
A
441
442options CONFIG_PROC_UUID_POLICY # <config_proc_uuid_policy>
443
fe8ab488
A
444#
445# ECC data logging
cb323159 446#
3e170ce0 447options CONFIG_ECC_LOGGING # <config_ecc_logging>
fe8ab488 448
39037602
A
449#
450# Application core dumps
451#
452options CONFIG_COREDUMP # <config_coredump>
453
5ba3f43e
A
454#
455# Vnode guards
456#
457options CONFIG_VNGUARD # <config_vnguard>
458
1c79356b
A
459#
460# Ethernet (ARP)
461#
f427ee49 462pseudo-device ether # <networking,inet>
1c79356b
A
463#
464# Network loopback device
465#
f427ee49 466pseudo-device loop # <networking,inet>
1c79356b
A
467#
468# UCB pseudo terminal service
469#
2d21ac55
A
470pseudo-device pty 512 init pty_init # <xlarge>
471pseudo-device pty 256 init pty_init # <large>
472pseudo-device pty 128 init pty_init # <medium>
473pseudo-device pty 48 init pty_init # <small>
474pseudo-device pty 16 init pty_init # <xsmall>
475pseudo-device pty 8 init pty_init # <bsmall>
476#
477# Cloning pseudo terminal service
478#
479pseudo-device ptmx 1 init ptmx_init
9bccf70c
A
480
481#
482# vnode device
2d21ac55 483#
fe8ab488 484pseudo-device vndevice 4 init vndevice_init # <development,debug>
9bccf70c 485
55e303ae
A
486#
487# memory device
488pseudo-device mdevdevice 1 init mdevinit
489
9bccf70c 490#
1c79356b
A
491#
492# packet filter device
493#
f427ee49 494pseudo-device bpfilter 4 init bpf_init # <networking,inet>
1c79356b 495
91447636
A
496#
497# fsevents device
2d21ac55 498pseudo-device fsevents 1 init fsevents_init # <config_fse>
91447636 499
0b4e3aa0 500pseudo-device random 1 init random_init
2d21ac55
A
501pseudo-device dtrace 1 init dtrace_init # <config_dtrace>
502pseudo-device helper 1 init helper_init # <config_dtrace>
503pseudo-device lockstat 1 init lockstat_init # <config_dtrace>
0a7de745 504pseudo-device lockprof 1 init lockprof_init # <config_dtrace>
2d21ac55
A
505pseudo-device sdt 1 init sdt_init # <config_dtrace>
506pseudo-device systrace 1 init systrace_init # <config_dtrace>
507pseudo-device fbt 1 init fbt_init # <config_dtrace>
508pseudo-device profile_prvd 1 init profile_init # <config_dtrace>
fe8ab488 509
5ba3f43e 510
fe8ab488
A
511#
512# IOKit configuration options
513#
514
515options HIBERNATION # system hibernation # <hibernation>
3e170ce0
A
516options IOKITCPP # C++ implementation # <iokitcpp>
517options IOKITSTATS # IOKit statistics # <iokitstats>
518options IOTRACKING # IOKit tracking # <iotracking>
519options CONFIG_SLEEP # # <config_sleep>
f427ee49 520options CONFIG_MAX_THREADS=500 # IOConfigThread threads
3e170ce0
A
521options NO_KEXTD # <no_kextd>
522options NO_KERNEL_HID # <no_kernel_hid>
fe8ab488
A
523
524#
525# Libkern configuration options
526#
527
528options LIBKERNCPP # C++ implementation # <libkerncpp>
d9a64523 529options CONFIG_BLOCKS # Blocks runtime # <config_blocks>
fe8ab488
A
530options CONFIG_KXLD # kxld/runtime linking of kexts # <config_kxld>
531options CONFIG_KEC_FIPS # Kernel External Components for FIPS compliance (KEC_FIPS) # <config_kec_fips>
532
533# Note that when adding this config option to an architecture, one MUST
534# add the architecture to the preprocessor test at the beginning of
535# libkern/kmod/cplus_{start.c,stop.c}.
536options CONFIG_STATIC_CPPINIT # Static library initializes kext cpp runtime # <config_static_cppinit>
537
538#
539# libsa configuration options
540#
541
542# CONFIG_KEXT_BASEMENT - alloc post boot loaded kexts after prelinked kexts
543#
3e170ce0 544options CONFIG_KEXT_BASEMENT # # <config_kext_basement>
fe8ab488 545
490019cf
A
546#
547# Persona Management
548#
549options CONFIG_PERSONAS # Persona management # <config_personas>
550options PERSONA_DEBUG # Persona debugging # <persona_debug>
551
fe8ab488
A
552#
553# security configuration options
554#
555
3e170ce0 556options CONFIG_MACF # Mandatory Access Control Framework # <config_macf>
fe8ab488 557options CONFIG_MACF_SOCKET_SUBSET # MAC socket subest (no labels) # <config_macf>
3e170ce0 558#options CONFIG_MACF_DEBUG # debug # <config_macf>
fe8ab488 559
3e170ce0 560options CONFIG_AUDIT # Kernel auditing # <config_audit>
fe8ab488 561
cb323159 562options CONFIG_ARCADE # Arcade validation support # <config_arcade>
fe8ab488 563
f427ee49
A
564options CONFIG_SETUID # setuid/setgid support # <config_setuid>
565
566options CONFIG_SECURE_BSD_ROOT # secure BSD root # <config_secure_bsd_root>
567
568options CONFIG_KAS_INFO # kas_info support # <config_kas_info>
569
570options CONFIG_ZALLOC_SEQUESTER # Sequester VA for zones # <config_zalloc_sequester>
571
fe8ab488
A
572#
573# MACH configuration options.
574#
575# TASK_SWAPPER enables code that manages demand for physical memory by
576# forcibly suspending tasks when the demand exceeds supply. This
577# option should be on.
578#
fe8ab488
A
579options TASK_SWAPPER # <task_swapper_disabled>
580
581#
582# This defines configuration options that are normally used only during
583# kernel code development and debugging. They add run-time error checks or
584# statistics gathering, which will slow down the system
585#
586##########################################################
587#
588# MACH_ASSERT controls the assert() and ASSERT() macros, used to verify the
589# consistency of various algorithms in the kernel. The performance impact
590# of this option is significant.
591#
592options MACH_ASSERT # # <mach_assert>
593#
594# MACH_DEBUG enables the mach_debug_server, a message interface used to
595# retrieve or control various statistics. This interface may expose data
596# structures that would not normally be allowed outside the kernel, and
597# MUST NOT be enabled on a released configuration.
598# Other options here enable information retrieval for specific subsystems
599#
600options MACH_DEBUG # IPC debugging interface # <mdebug>
601options MACH_IPC_DEBUG # Enable IPC debugging calls # <ipc_debug>
3e170ce0 602options MACH_VM_DEBUG # # <debug>
fe8ab488
A
603#
604# MACH_MP_DEBUG control the possible dead locks that may occur by controlling
605# that IPL level has been raised down to SPL0 after some calls to
606# hardclock device driver.
607#
3e170ce0 608options MACH_MP_DEBUG # # <debug>
f427ee49 609options CONFIG_ZCACHE # Enable per-cpu caching for zones # <config_zcache>
fe8ab488
A
610options CONFIG_ZLEAKS # Live zone leak debugging # <zleaks>
611
fe8ab488
A
612#
613# CONFIG_TASK_ZONE_INFO allows per-task zone information to be extracted
614# Primarily useful for xnu debug and development.
615#
616options CONFIG_TASK_ZONE_INFO # <task_zone_info>
617#
618# CONFIG_DEBUGGER_FOR_ZONE_INFO restricts zone info so that it is only
619# available when the kernel is being debugged.
620#
621options CONFIG_DEBUGGER_FOR_ZONE_INFO # <debugger_for_zone_info>
cb323159 622#
fe8ab488
A
623# MACH_LDEBUG controls the internal consistency checks and
624# data gathering in the locking package. This also enables a debug-only
625# version of simple-locks on uniprocessor machines. The code size and
626# performance impact of this option is significant.
cb323159 627#
fe8ab488
A
628options MACH_LDEBUG # # <debug>
629
630#
631# configuration option for full, partial, or no kernel debug event tracing
632#
633options KDEBUG # kernel tracing # <kdebug>
634options IST_KDEBUG # limited tracing # <ist_kdebug>
3e170ce0 635options NO_KDEBUG # no kernel tracing # <no_kdebug>
fe8ab488
A
636
637#
638# CONFIG_DTRACE enables code needed to support DTrace. Currently this is
639# only used for delivery of traps/interrupts to DTrace.
640#
3e170ce0 641options CONFIG_DTRACE # # <config_dtrace>
fe8ab488 642
0a7de745
A
643options LOCK_STATS # # <lock_stats>
644
fe8ab488
A
645# kernel performance tracing
646options KPERF # <kperf>
647options KPC # <kpc>
648
5ba3f43e 649
813fb2f6
A
650options PGO # <pgo>
651
fe8ab488 652# MACH_COUNTERS enables code that handles various counters in the system.
cb323159 653#
3e170ce0 654options MACH_COUNTERS # # <debug>
fe8ab488
A
655
656# DEVELOPMENT define for development builds
3e170ce0 657options DEVELOPMENT # dev kernel # <development>
fe8ab488
A
658
659# DEBUG kernel
3e170ce0 660options DEBUG # general debugging code # <debug>
cb323159 661options CONFIG_NONFATAL_ASSERTS # non fatal asserts # <softasserts>
fe8ab488
A
662
663##########################################################
664#
665# This defines configuration options that are normally used only during
666# kernel code development and performance characterization. They add run-time
667# statistics gathering, which will slow down the system,
668#
669##########################################################
670#
671# MACH_IPC_STATS controls the collection of statistics in the MACH IPC
672# subsystem.
673#
674#options MACH_IPC_STATS
675#
676# MACH_CLUSTER_STATS controls the collection of various statistics concerning
677# the effectiveness and behavior of the clustered pageout and pagein
678# code.
679#
680#options MACH_CLUSTER_STATS
681
682options MACH_BSD # BSD subsystem on top of Mach # <mach_bsd>
683options IOKIT # # <iokit>
684
685#
cb323159 686# configurable kernel related resources (CONFIG_THREAD_MAX needs to stay in
fe8ab488
A
687# sync with bsd/conf/MASTER until we fix the config system... todo XXX
688#
689options CONFIG_THREAD_MAX=2560 # <medium,large,xlarge>
690options CONFIG_THREAD_MAX=1536 # <small,xsmall>
691options CONFIG_THREAD_MAX=1024 # <bsmall>
692
693options CONFIG_TASK_MAX=1024 # <medium,large,xlarge>
694options CONFIG_TASK_MAX=768 # <small,>
695options CONFIG_TASK_MAX=512 # <xsmall,bsmall>
696
0a7de745
A
697#
698# Minimum zone map size: 115 MB
699#
700options CONFIG_ZONE_MAP_MIN=120586240 # <xsmall,bsmall,small,medium,large,xlarge>
fe8ab488 701
cb323159
A
702# Sizes must be a power of two for the zhash to
703# be able to just mask off bits instead of mod
fe8ab488
A
704options CONFIG_ZLEAK_ALLOCATION_MAP_NUM=16384 #<medium,large,xlarge>
705options CONFIG_ZLEAK_ALLOCATION_MAP_NUM=8192 #<small,xsmall,bsmall>
706options CONFIG_ZLEAK_TRACE_MAP_NUM=8192 #<medium,large,xlarge>
707options CONFIG_ZLEAK_TRACE_MAP_NUM=4096 #<small,xsmall,bsmall>
708
709# vc_progress_white - make the progress gear white instead of black
710options CONFIG_VC_PROGRESS_WHITE # <vc_progress_white>
711
fe8ab488
A
712#
713# Timeshare scheduler implementations
714#
715options CONFIG_SCHED_TRADITIONAL # <config_sched_traditional>
716options CONFIG_SCHED_PROTO # <config_sched_proto>
717options CONFIG_SCHED_GRRR # <config_sched_grrr>
718options CONFIG_SCHED_GRRR_CORE # <config_sched_grrr>
719options CONFIG_SCHED_MULTIQ # <config_sched_multiq>
720options CONFIG_SCHED_TIMESHARE_CORE # <config_sched_traditional,config_sched_multiq>
cb323159 721options CONFIG_CLUTCH # <config_clutch>
f427ee49 722options CONFIG_SCHED_AUTO_JOIN # <config_sched_auto_join>
fe8ab488 723
3e170ce0
A
724options CONFIG_SCHED_IDLE_IN_PLACE # <config_sched_idle_in_place>
725options CONFIG_SCHED_SFI # <config_sched_sfi>
fe8ab488 726options CONFIG_GZALLOC # <config_gzalloc>
3e170ce0 727options CONFIG_SCHED_DEFERRED_AST # <config_sched_deferred_ast>
fe8ab488
A
728
729# Enable allocation of contiguous physical memory through vm_map_enter_cpm()
3e170ce0 730options VM_CPM # <vm_cpm>
fe8ab488 731
3e170ce0 732options CONFIG_SKIP_PRECISE_USER_KERNEL_TIME # <config_skip_precise_user_kernel_time>
fe8ab488
A
733
734#
735# Switch to disable cpu, wakeup and high memory watermark monitors
736#
3e170ce0 737options CONFIG_NOMONITORS # <config_nomonitors>
fe8ab488 738
3e170ce0
A
739options MACH_KDP # KDP # <mach_kdp>
740options CONFIG_SERIAL_KDP # KDP over serial # <config_serial_kdp>
fe8ab488
A
741options CONFIG_KDP_INTERACTIVE_DEBUGGING # <kdp_interactive_debugging>
742
f427ee49 743options CONFIG_TASKWATCH
3e170ce0
A
744#
745# Kernel Power On Self Tests
746#
747options CONFIG_XNUPOST # <config_xnupost>
748
749#
750# Kernel proc reference instrumentation
751#
752options PROC_REF_DEBUG # <proc_ref_debug>
753
39037602
A
754#
755# Kernel OS reason debug instrumentation
756#
757options OS_REASON_DEBUG # <os_reason_debug>
758
fe8ab488
A
759#
760# Kernel Voucher Attr Manager for Activity Trace
761#
3e170ce0 762options CONFIG_ATM # <config_atm>
fe8ab488 763
fe8ab488
A
764# Group related tasks together into coalitions
765options CONFIG_COALITIONS # <config_coalitions>
766
3e170ce0
A
767# Enable support for sysdiagnose notifications
768options CONFIG_SYSDIAGNOSE # <config_sysdiagnose>
769
fe8ab488 770# Configurable Security Restrictions
3e170ce0 771options CONFIG_CSR # <config_csr>
f427ee49 772options CONFIG_CSR_FROM_DT # <config_csr_from_dt>
fe8ab488
A
773
774#
775# Console options
776#
777options SERIAL_CONSOLE # bi-directional serial over UART
778options VIDEO_CONSOLE # uni-directional output over framebuffer
779
780#
781# Syscall options
782#
783options CONFIG_REQUIRES_U32_MUNGING # incoming U32 argument structures must be munged to match U64 # <config_requires_u32_munging>
5ba3f43e
A
784
785#
786# copyout() instrumentation
787#
788options COPYOUT_SHIM # Shim for copyout memory analysis via kext #<copyout_shim>
789
0a7de745 790#
cb323159 791# Enable hardware correlation of mach absolute time
0a7de745
A
792# across intel/arm boundary
793options CONFIG_MACH_BRIDGE_SEND_TIME # # <config_mach_bridge_send_time>
794options CONFIG_MACH_BRIDGE_RECV_TIME # # <config_mach_bridge_recv_time>
527f9951
A
795
796#
797# Telemetry for 32-bit process launch
798#
799options CONFIG_32BIT_TELEMETRY # # <config_32bit_telemetry>
d9a64523
A
800
801options CONFIG_QUIESCE_COUNTER # Support for _COMM_PAGE_CPU_QUIESCENT_COUNTER # <config_quiesce_counter>
f427ee49 802options CONFIG_ARM_PFZ # Support for PFZ on ARM # <config_arm_pfz>
d9a64523 803
cb323159
A
804#
805# Sanitizers
806#
807options CONFIG_KASAN # <config_kasan>
808options CONFIG_UBSAN # <config_ubsan>
809options CONFIG_KSANCOV # <config_ksancov>
810
f427ee49
A
811# dark boot support
812options CONFIG_DARKBOOT # <config_darkboot>
813
814# support for processes delaying idle sleep for pending IO
815options CONFIG_DELAY_IDLE_SLEEP # <config_delay_idle_sleep>
816
817# support for storing a 64-bit user supplied value in the proc structure
818options CONFIG_PROC_UDATA_STORAGE # <config_proc_udata_storage>
819
cb323159 820pseudo-device ksancov 1 init ksancov_init_dev # <config_ksancov>
f427ee49
A
821
822# debug instrumentation to catch code that leaves interrupts masked
823# for an excessive period of time
824options INTERRUPT_MASKED_DEBUG # <interrupt_masked_debug>