xref: /xnu-12377.81.4/config/MASTER (revision 043036a2b3718f7f0be807e2870f8f47d3fa0796)
1#
2# Mach Operating System
3# Copyright (c) 1986 Carnegie-Mellon University
4# Copyright 2001-2018 Apple Inc.
5#
6# All rights reserved.  The CMU software License Agreement
7# specifies the terms and conditions for use and redistribution.
8#
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#
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
51#	bsmall = special extra small scale system configuration
52#
53#######################################################################
54#
55
56options		INET		#				# <inet>
57
58options 	MACH		# Standard Mach features	# <mach>
59options		LOOP		# loopback support		# <loop>
60options		VLAN		#				# <vlan>
61options		BOND		#				# <bond>
62options		IF_FAKE		#				# <if_fake>
63options		IF_HEADLESS	#				# <if_headless>
64options		IF_REDIRECT	#				# <if_redirect>
65options		AH_ALL_CRYPTO	# AH all crypto algs		# <ah_all_crypto>
66options		PF		# Packet Filter			# <pf>
67options		PF_ECN		# PF use ECN marking		# <pf_ecn>
68options		PFLOG		# PF log interface		# <pflog>
69options		MEASURE_BW	# interface bandwidth measurement # <measure_bw>
70options		DUMMYNET	# dummynet support		# <dummynet>
71options		TRAFFIC_MGT	# traffic management support		# <traffic_mgt>
72options		MULTICAST	# Internet Protocol Class-D	$
73options		IFNET_INPUT_SANITY_CHK	# allow dlil/ifnet input sanity check # <ifnet_input_chk>
74options		MULTIPATH	# Multipath domain		# <multipath>
75options		MPTCP		# Multipath TCP			# <mptcp>
76options		SYSV_SEM	# SVID semaphores		# <sysv_sem>
77options		SYSV_MSG	# SVID messages			# <sysv_msg>
78options		SYSV_SHM	# SVID shared mem		# <sysv_shm>
79options		PSYNCH		# pthread synch			# <psynch>
80options		FLOW_DIVERT								# <flow_divert>
81options		NECP									# <necp>
82options		CONTENT_FILTER	#						# <content_filter>
83options 	PACKET_MANGLER	#						# <packet_mangler>
84options 	REMOTE_VIF	#						# <remote_vif>
85options		SKYWALK		#		# <skywalk>
86options		CONFIG_NEXUS_USER_PIPE	#	# <config_nexus_user_pipe>
87options		CONFIG_NEXUS_KERNEL_PIPE #	# <config_nexus_kernel_pipe>
88options		CONFIG_NEXUS_FLOWSWITCH	#	# <config_nexus_flowswitch>
89options		CONFIG_NEXUS_NETIF	#	# <config_nexus_netif>
90options		CONFIG_MBUF_MCACHE	# mbufs use mcache	# <config_mbuf_mcache>
91options		KCTL_TEST		# kernel control test	# <kctl_test>
92
93# secure_kernel - secure kernel from user programs
94options     SECURE_KERNEL       # <secure_kernel>
95
96#
97#	4.4 general kernel
98#
99options		SOCKETS		# socket support		# <inet>
100options 	DIAGNOSTIC	# diagnostics			# <diagnostic>
101options		PROFILE		# kernel profiling		# <profile>
102options		SENDFILE	# sendfile					# <sendfile>
103options		NETWORKING	# networking layer		# <inet>
104options		CONFIG_FSE	# file system events		# <config_fse>
105options		CONFIG_IMAGEBOOT	# local image boot	# <config_imageboot>
106options		CONFIG_IMAGEBOOT_IMG4	# authenticate image with AppleImage4	# <config_imageboot_img4>
107options		CONFIG_IMAGEBOOT_CHUNKLIST	# authenticate image with a chunk list	# <config_imageboot_chunklist>
108
109options		CONFIG_WORKLOOP_DEBUG	# <config_workloop_debug>
110
111#
112#	4.4 filesystems
113#
114options		MOCKFS		# Boot from an executable	# <mockfs>
115options		FIFO		# fifo support			# <fifo>
116options		FDESC		# fdesc_fs support		# <fdesc>
117options		DEVFS		# devfs support			# <devfs>
118options		ROUTEFS		# routefs support		# <routefs>
119options		NULLFS		# nullfs support 		# <nullfs>
120options		BINDFS		# bindfs support 		# <bindfs>
121options		FS_COMPRESSION	# fs compression	    # <fs_compression>
122options		CONFIG_DEV_KMEM	    # /dev/kmem device for reading KVA	# <config_dev_kmem>
123
124#
125#	file system features
126#
127options		QUOTA		# file system quotas		# <quota>
128options		NAMEDSTREAMS	# named stream vnop support	# <namedstreams>
129options		CONFIG_APPLEDOUBLE # apple double support	# <config_appledouble>
130options		CONFIG_VOLFS	# volfs path support (legacy)	# <config_volfs>
131options		CONFIG_IMGSRC_ACCESS # source of imageboot dmg	# <config_imgsrc_access>
132options		CONFIG_TRIGGERS	# trigger vnodes		# <config_triggers>
133options		CONFIG_EXT_RESOLVER # e.g. memberd		# <config_ext_resolver>
134options		CONFIG_SEARCHFS	# searchfs syscall support	# <config_searchfs>
135options		CONFIG_MNT_SUID # allow suid binaries  # <config_mnt_suid>
136options		CONFIG_MNT_ROOTSNAP # allow rooting from snapshot # <config_mnt_rootsnap>
137options 	CONFIG_ROSV_STARTUP # allow read-only system volume startup # <config_rosv_startup>
138options		CONFIG_FIRMLINKS # support "firmlinks" # <config_firmlinks>
139options 	CONFIG_MOUNT_VM # mount VM volume on startup # <config_mount_vm>
140options 	CONFIG_MOUNT_PREBOOTRECOVERY # mount Preboot and/or Recovery volume on startup # <config_mount_prebootrecovery>
141options		CONFIG_DATALESS_FILES # support dataless file materialization # <config_dataless_files>
142options         CONFIG_BASESYSTEMROOT # mount BaseSystem as initial root filesystem on some kinds of startup # <config_basesystemroot>
143options         CONFIG_UNION_MOUNTS # support union mounts # <config_union_mounts>
144options		CONFIG_FILE_LEASES # local file leasing support # <config_file_leases>
145
146#
147# VFS debugging
148#
149options		CONFIG_IOCOUNT_TRACE	# enable vnode's iocount tracing # <config_iocount_trace>
150
151# NFS support
152#
153options		NFSSERVER	# Be an NFS server		# <nfsserver>
154options		CONFIG_NETBOOT	# network booting		# <config_netboot>
155
156#
157# Machine Independent Apple Features
158#
159profile				# build a profiling kernel	# <profile>
160
161#
162# IPv6 Support
163#
164options         IPSEC           # IP security            	# <ipsec>
165options         IPSEC_ESP       # IP security            	# <ipsec>
166
167pseudo-device   gif     1				# <gif>
168pseudo-device   dummy   2				# <dummy>
169pseudo-device   stf 	1 				# <stf>
170
171options			CRYPTO				# <ipsec,crypto>
172options			CRYPTO_SHA2			# <crypto_sha2>
173options			ENCRYPTED_SWAP			# <encrypted_swap>
174
175options			CONFIG_IMG4			# <config_img4>
176
177options		ZLIB	# inflate/deflate support	# <zlib>
178options		ZLIBC	# inflate/deflate support	# <zlibc>
179
180options		IF_BRIDGE				# <if_bridge>
181
182#
183#  configurable kernel event related resources
184#
185options   CONFIG_KN_HASHSIZE=64		# <medium,large,xlarge>
186options   CONFIG_KN_HASHSIZE=48		# <small,xsmall>
187options   CONFIG_KN_HASHSIZE=20		# <bsmall>
188
189#
190#  configurable vfs related resources
191#  CONFIG_VNODES - used to pre allocate vnode related resources
192#  CONFIG_NC_HASH - name cache hash table allocation
193#  CONFIG_VFS_NAMES - name strings
194#
195#  263168 magic number for medium CONFIG_VNODES is based on memory
196#  Number vnodes  is (memsize/64k) + 1024
197#  This is the calculation that is used by launchd in tiger
198#  we are clipping the max based on 16G
199#  ie ((16*1024*1024*1024)/(64 *1024)) + 1024 = 263168;
200
201options   CONFIG_VNODES=263168		# <large,xlarge>
202options   CONFIG_VNODES=263168		# <medium>
203options   CONFIG_VNODES=10240		# <small>
204options   CONFIG_VNODES=750		# <bsmall>
205
206options   CONFIG_NC_HASH=5120		# <large,xlarge>
207options   CONFIG_NC_HASH=4096		# <medium>
208options   CONFIG_NC_HASH=2048		# <small,xsmall>
209options   CONFIG_NC_HASH=1024		# <bsmall>
210
211options   CONFIG_VFS_NAMES=5120		# <large,xlarge>
212options   CONFIG_VFS_NAMES=4096		# <medium>
213options   CONFIG_VFS_NAMES=3072		# <small,xsmall>
214options   CONFIG_VFS_NAMES=2048		# <bsmall>
215
216options   CONFIG_MAX_CLUSTERS=8		# <xlarge,large,medium>
217options   CONFIG_MAX_CLUSTERS=4		# <small,xsmall,bsmall>
218
219#
220#  configurable options for minumum number of buffers for kernel memory
221#
222options   CONFIG_MIN_NBUF=256		# <medium,large,xlarge>
223options   CONFIG_MIN_NBUF=128		# <small>
224options   CONFIG_MIN_NBUF=80		# <xsmall>
225options   CONFIG_MIN_NBUF=64		# <bsmall>
226
227options   CONFIG_MIN_NIOBUF=128		# <medium,large,xlarge>
228options   CONFIG_MIN_NIOBUF=64		# <xsmall,small>
229options   CONFIG_MIN_NIOBUF=32		# <bsmall>
230
231#
232# set maximum space used for packet buffers
233#
234options        CONFIG_NMBCLUSTERS="((1024 * 1024) / MCLBYTES)"	# <large,xlarge>
235options        CONFIG_NMBCLUSTERS="((1024 * 512) / MCLBYTES)"	# <medium>
236options        CONFIG_NMBCLUSTERS="((1024 * 256) / MCLBYTES)"	# <bsmall,xsmall,small>
237
238#
239# Configure size of TCP hash table
240#
241options CONFIG_TCBHASHSIZE=4096		# <medium,large,xlarge>
242options CONFIG_TCBHASHSIZE=128		# <xsmall,small,bsmall>
243
244#
245#  configurable async IO options
246#  CONFIG_AIO_MAX - system wide limit of async IO requests.
247#  CONFIG_AIO_PROCESS_MAX - process limit of async IO requests.
248#  CONFIG_AIO_THREAD_COUNT - number of async IO worker threads created.
249#
250options   CONFIG_AIO_MAX=360			# <xlarge>
251options   CONFIG_AIO_MAX=180			# <large>
252options   CONFIG_AIO_MAX=90			# <medium>
253options   CONFIG_AIO_MAX=45			# <small>
254options   CONFIG_AIO_MAX=20			# <xsmall>
255options   CONFIG_AIO_MAX=10			# <bsmall>
256
257options   CONFIG_AIO_PROCESS_MAX=64		# <xlarge>
258options   CONFIG_AIO_PROCESS_MAX=32		# <large>
259options   CONFIG_AIO_PROCESS_MAX=16		# <medium>
260options   CONFIG_AIO_PROCESS_MAX=12		# <small>
261options   CONFIG_AIO_PROCESS_MAX=8		# <xsmall>
262options   CONFIG_AIO_PROCESS_MAX=4		# <bsmall>
263
264options   CONFIG_AIO_THREAD_COUNT=16		# <xlarge>
265options   CONFIG_AIO_THREAD_COUNT=8		# <large>
266options   CONFIG_AIO_THREAD_COUNT=4		# <medium>
267options   CONFIG_AIO_THREAD_COUNT=3		# <small>
268options   CONFIG_AIO_THREAD_COUNT=2		# <xsmall,bsmall>
269
270options   CONFIG_MAXVIFS=32			# <medium,large,xlarge>
271options   CONFIG_MAXVIFS=16			# <small,xsmall>
272options   CONFIG_MAXVIFS=2			# <bsmall>
273
274options   CONFIG_MFCTBLSIZ=256			# <medium,large,xlarge>
275options   CONFIG_MFCTBLSIZ=128			# <small,xsmall>
276options   CONFIG_MFCTBLSIZ=16			# <bsmall>
277
278#
279# configurable kernel message buffer size
280#
281options   CONFIG_MSG_BSIZE_REL=16384		# <msgb_small>
282options   CONFIG_MSG_BSIZE_DEV=131072		# <msgb_small>
283options   CONFIG_MSG_BSIZE_REL=131072		# <msgb_large>
284options   CONFIG_MSG_BSIZE_DEV=131072		# <msgb_large>
285options   CONFIG_MSG_BSIZE=CONFIG_MSG_BSIZE_REL	# <!development,debug>
286options   CONFIG_MSG_BSIZE=CONFIG_MSG_BSIZE_DEV	# <development,debug>
287
288#
289# maximum size of the per-process Mach IPC table
290#
291options   CONFIG_IPC_TABLE_ENTRIES_SIZE_MAX=3145728  	# 3M == 131072 entries	# <bsmall,small,xsmall>
292options   CONFIG_IPC_TABLE_ENTRIES_SIZE_MAX=7340032 	# 7M == 305834 entries	# <medium,large,xlarge>
293options   CONFIG_IPC_TABLE_REQUEST_SIZE_MAX=1048576 	# 1M == 65536 requests	# <bsmall,small,xsmall>
294options   CONFIG_IPC_TABLE_REQUEST_SIZE_MAX=2097152 	# 2M == 131072 requests	# <medium,large,xlarge>
295
296#
297# maximum copyout size for IPC debugging tools
298#
299options CONFIG_IPC_KERNEL_MAP_SIZE=32	# 32M	# <bsmall,small,xsmall>
300options CONFIG_IPC_KERNEL_MAP_SIZE=64	# 64M	# <medium,large,xlarge>
301
302#
303#  configurable kernel - use these options to strip strings from panic
304#  and printf calls.
305#  no_printf_str - saves around 45K of kernel footprint.
306#
307options   CONFIG_NO_PRINTF_STRINGS		# <no_printf_str>
308options   CONFIG_NO_KPRINTF_STRINGS		# <no_kprintf_str>
309
310# support vsprintf (deprecated in favor of vsnprintf)
311options   CONFIG_VSPRINTF               # <vsprintf>
312
313#
314# configurable kernel - general switch to say we are building for an
315# embedded device
316#
317options   CONFIG_EMBEDDED			# <config_embedded>
318
319
320# Compile XNU with SPTM support. This option should be used mutually exclusively
321# with the config_pmap_ppl option
322options   CONFIG_SPTM				# <config_sptm>
323
324
325# Enable support for commmunication with exclaves. Requires SPTM support.
326options		CONFIG_EXCLAVES			# <config_exclaves>
327
328# Compile XNU with PPL support.
329options   CONFIG_PMAP_PPL			# <config_pmap_ppl>
330
331options   NOS_ARM_ASM			# <nos_arm_asm>
332options   NOS_ARM_PMAP			# <nos_arm_pmap>
333
334# support dynamic signing of code
335#
336options		CONFIG_DYNAMIC_CODE_SIGNING	# <dynamic_codesigning>
337
338# enforce library validation on all processes.
339#
340options		CONFIG_ENFORCE_LIBRARY_VALIDATION  # <config_library_validation>
341
342# support loading a second static trust cache
343#
344options CONFIG_SECOND_STATIC_TRUST_CACHE # <second_static_trust_cache>
345
346# support supplemental signatures
347#
348options CONFIG_SUPPLEMENTAL_SIGNATURES # <config_supplemental_signatures>
349
350#
351# code decryption... used on embedded for app protection, DSMOS on desktop
352#
353options		CONFIG_CODE_DECRYPTION		# <config_code_decryption>
354
355#
356# User Content Protection, used on embedded
357#
358options		CONFIG_PROTECT			# <config_protect>
359
360#allow write-protection of key page
361options		CONFIG_KEYPAGE_WP		# <config_keypage_wp>
362
363#
364# allow vm_pageout_scan to dynamically adjust its priority based on priorities of waiters
365#
366options		CONFIG_VPS_DYNAMIC_PRIO		# <vps_dynamic_prio>
367
368#
369# enable per-process memory priority tracking
370#
371options		CONFIG_MEMORYSTATUS		# <memorystatus>
372
373options		CONFIG_DEFERRED_RECLAIM		# <config_deferred_reclaim>
374
375#
376# enable jetsam - used on embedded
377#
378options		CONFIG_JETSAM			# <jetsam>
379
380#
381# enable new wait queue implementation stats / debugging
382#
383options		CONFIG_WAITQ_STATS			# <config_waitq_stats>
384
385#
386# enable freezing of suspended processes - used on embedded
387#
388options		CONFIG_FREEZE			# <freeze>
389
390options		CHECK_CS_VALIDATION_BITMAP	# <config_cs_validation_bitmap>
391
392#
393# enable physical writes accounting
394#
395options		CONFIG_PHYS_WRITE_ACCT		# <phys_write_acct>
396
397#
398# enable detection of file cache thrashing - used on platforms with
399# dynamic VM compression enabled
400#
401options		CONFIG_PHANTOM_CACHE		# <phantom_cache>
402
403#
404# enable detection of anonymous pages staying unmodified after first use
405# - used on platforms with dynamic VM compression enabled
406#
407options		CONFIG_TRACK_UNMODIFIED_ANON_PAGES		# <track_unmodified_anon_pages>
408
409#
410# memory pressure event support
411#
412options		VM_PRESSURE_EVENTS		# <vm_pressure_events>
413
414options		CONFIG_SECLUDED_MEMORY		# <config_secluded_memory>
415
416#
417# Ledger features
418#
419options		CONFIG_LEDGER_INTERVAL_MAX	# <config_ledger_interval_max>
420
421#
422# I/O Scheduling
423#
424options		CONFIG_IOSCHED			# <config_iosched>
425
426#
427# Accounting for I/O usage
428#
429options 	CONFIG_IO_ACCOUNTING 		# <config_io_accounting>
430
431#
432# Enable inheritance of importance through specially marked mach ports and for file locks
433# For now debug is enabled wherever inheritance is
434#
435options		IMPORTANCE_INHERITANCE		# <importance_inheritance>
436options		IMPORTANCE_TRACE		# <importance_trace>
437options		IMPORTANCE_DEBUG		# <importance_debug>
438
439options		CONFIG_TELEMETRY		# <config_telemetry>
440
441options		CONFIG_PROC_UUID_POLICY		# <config_proc_uuid_policy>
442
443#
444# ECC data logging
445#
446options		CONFIG_ECC_LOGGING		# <config_ecc_logging>
447
448#
449# Application core dumps dumped synchronously by xnu
450#
451options		CONFIG_COREDUMP			# <config_coredump>
452
453#
454# Application core dumps dumped in userland via corpses
455#
456options		CONFIG_UCOREDUMP		# <config_ucoredump>
457
458#
459# Vnode guards
460#
461options		CONFIG_VNGUARD			# <config_vnguard>
462
463#
464# Paravirtualization
465#
466options		CONFIG_PV_TICKET		# <config_pv_ticket>
467
468#
469# Enable extended VM address space and user heap segregation
470#
471options     CONFIG_MAP_RANGES       # <config_map_ranges>
472
473#
474#  Ethernet (ARP)
475#
476pseudo-device	ether				# <networking,inet>
477#
478#  Network loopback device
479#
480pseudo-device	loop				# <networking,inet>
481#
482#  UCB pseudo terminal service
483#
484pseudo-device  pty     512 init pty_init       # <xlarge>
485pseudo-device  pty     256 init pty_init       # <large>
486pseudo-device  pty     128 init pty_init       # <medium>
487pseudo-device  pty      48 init pty_init       # <small>
488pseudo-device  pty      16 init pty_init       # <xsmall>
489pseudo-device  pty       8 init pty_init       # <bsmall>
490#
491# Cloning pseudo terminal service
492#
493pseudo-device	ptmx	1 init ptmx_init
494
495#
496# memory device
497pseudo-device	mdevdevice	1	init	mdevinit
498
499#
500#
501# packet filter device
502#
503pseudo-device	bpfilter	4	init	bpf_init		# <networking,inet>
504
505#
506# fsevents device
507pseudo-device	fsevents	1	init	fsevents_init	# <config_fse>
508
509pseudo-device	random		1	init	random_init
510pseudo-device	dtrace		1	init	dtrace_init	# <config_dtrace>
511pseudo-device	helper		1	init	helper_init	# <config_dtrace>
512pseudo-device	lockstat	1	init	lockstat_init	# <config_dtrace>
513pseudo-device	lockprof	1	init	lockprof_init	# <config_dtrace>
514pseudo-device	sdt		1	init	sdt_init	# <config_dtrace>
515pseudo-device	systrace	1	init	systrace_init	# <config_dtrace>
516pseudo-device	fbt		1	init	fbt_init	# <config_dtrace>
517pseudo-device	profile_prvd	1	init	profile_init	# <config_dtrace>
518
519# monotonic devices
520pseudo-device monotonic 1 init mt_dev_init # <config_cpu_counters>
521
522#
523# IOKit configuration options
524#
525
526options		HIBERNATION	# system hibernation	# <hibernation>
527options		IOKITCPP	# C++ implementation	# <iokitcpp>
528options		IOKITSTATS	# IOKit statistics	# <iokitstats>
529options		IOTRACKING	# IOKit tracking	# <iotracking>
530options		CONFIG_SLEEP	#			# <config_sleep>
531options		CONFIG_MAX_THREADS=500	# IOConfigThread threads
532options         NO_KEXTD                		# <no_kextd>
533options         NO_KERNEL_HID           		# <no_kernel_hid>
534
535#
536# Libkern configuration options
537#
538
539options		LIBKERNCPP		# C++ implementation	# <libkerncpp>
540options		CONFIG_BLOCKS		# Blocks runtime	# <config_blocks>
541options		CONFIG_KXLD		# kxld/runtime linking of kexts # <config_kxld>
542options		CONFIG_KEC_FIPS		# Kernel External Components for FIPS compliance (KEC_FIPS) # <config_kec_fips>
543
544# Note that when adding this config option to an architecture, one MUST
545# add the architecture to the preprocessor test at the beginning of
546# libkern/kmod/cplus_{start.c,stop.c}.
547options         CONFIG_STATIC_CPPINIT   # Static library initializes kext cpp runtime # <config_static_cppinit>
548
549#
550# libsa configuration options
551#
552
553# CONFIG_KEXT_BASEMENT - alloc post boot loaded kexts after prelinked kexts
554#
555options		CONFIG_KEXT_BASEMENT		#	# <config_kext_basement>
556
557#
558# Persona Management
559#
560options		CONFIG_PERSONAS	    # Persona management    # <config_personas>
561options		PERSONA_DEBUG	    # Persona debugging     # <persona_debug>
562
563#
564# security configuration options
565#
566
567options		CONFIG_MACF	# Mandatory Access Control Framework	# <config_macf>
568options		CONFIG_MACF_SOCKET_SUBSET	# MAC socket subest (no labels)	# <config_macf>
569#options	CONFIG_MACF_DEBUG   # debug	    	    # <config_macf>
570
571options		CONFIG_AUDIT	    # Kernel auditing	    # <config_audit>
572
573options		CONFIG_ARCADE		# Arcade validation support	# <config_arcade>
574
575options		CONFIG_SETUID		# setuid/setgid support # <config_setuid>
576
577options		CONFIG_SECURE_BSD_ROOT	# secure BSD root	# <config_secure_bsd_root>
578
579options		CONFIG_KAS_INFO		# kas_info support	# <config_kas_info>
580
581options		CONFIG_PROC_RESOURCE_LIMITS	# Per process limits for resources like file descriptors and mach ports  # <config_proc_resource_limits>
582
583#
584# MACH configuration options.
585#
586
587#
588# This defines configuration options that are normally used only during
589# kernel code development and debugging. They add run-time error checks or
590# statistics gathering, which will slow down the system
591#
592##########################################################
593#
594# MACH_ASSERT controls the assert() and ASSERT() macros, used to verify the
595#	consistency of various algorithms in the kernel. The performance impact
596#	of this option is significant.
597#
598options		MACH_ASSERT	#		# <mach_assert>
599options		MACH_VM_DEBUG	#				# <debug>
600options		CONFIG_ZLEAKS	# Live zone leak debugging	# <zleaks>
601options		CONFIG_VOUCHER_DEPRECATED # Enable deprecated voucher managers # <config_voucher_deprecated>
602
603#
604# CONFIG_DEBUGGER_FOR_ZONE_INFO restricts zone info so that it is only
605# available when the kernel is being debugged.
606#
607options		CONFIG_DEBUGGER_FOR_ZONE_INFO	# <debugger_for_zone_info>
608#
609# MACH_LDEBUG controls the internal consistency checks and
610#	data gathering in the locking package. This also enables a debug-only
611#	version of simple-locks on uniprocessor machines. The code size and
612#	performance impact of this option is significant.
613#
614options		MACH_LDEBUG	#		# <debug>
615
616#
617# configuration option for full, partial, or no kernel debug event tracing
618#
619options		KDEBUG			# kernel tracing	# <kdebug>
620options		IST_KDEBUG		# limited tracing	# <ist_kdebug>
621options		NO_KDEBUG       	# no kernel tracing 	# <no_kdebug>
622
623#
624# CONFIG_DTRACE enables code needed to support DTrace. Currently this is
625# only used for delivery of traps/interrupts to DTrace.
626#
627options		CONFIG_DTRACE		#		    # <config_dtrace>
628
629options		LOCK_STATS		#		    # <lock_stats>
630
631# kernel performance tracing
632options     KPERF                  # <kperf>
633
634options     CONFIG_CPU_COUNTERS     # <config_cpu_counters>
635
636options     CONFIG_PERVASIVE_CPI    # <config_pervasive_cpi>
637options     CONFIG_PERVASIVE_ENERGY # <config_pervasive_energy>
638
639options     CONFIG_IOTRACE          # Physical IO tracing    # <config_iotrace>
640
641options     PGO                    # <pgo>
642
643# DEVELOPMENT define for development builds
644options		DEVELOPMENT	# dev kernel	    	    # <development>
645
646# DEBUG kernel
647options		DEBUG		# general debugging code    # <debug>
648
649# RELEASE define for release builds
650options		RELEASE		# <release>
651
652options		MACH_BSD	# BSD subsystem on top of Mach	# <mach_bsd>
653options         IOKIT		#				# <iokit>
654
655#
656#  configurable kernel related resources (CONFIG_THREAD_MAX needs to stay in
657#  sync with bsd/conf/MASTER until we fix the config system... todo XXX
658#
659options   CONFIG_THREAD_MAX=2560		# <medium,large,xlarge>
660options   CONFIG_THREAD_MAX=1536		# <small,xsmall>
661options   CONFIG_THREAD_MAX=1024		# <bsmall>
662
663options   CONFIG_TASK_MAX=1024			# <medium,large,xlarge>
664options   CONFIG_TASK_MAX=768			# <small,>
665options   CONFIG_TASK_MAX=512			# <xsmall,bsmall>
666
667#
668# Minimum zone map size: 115 MB
669#
670options   CONFIG_ZONE_MAP_MIN=120586240	# <xsmall,bsmall,small,medium,large,xlarge>
671
672# vc_progress_white - make the progress gear white instead of black
673options	  CONFIG_VC_PROGRESS_WHITE		# <vc_progress_white>
674
675#
676# Timeshare scheduler implementations
677#
678options		CONFIG_SCHED_TIMESHARE_CORE	# <config_sched_timeshare_core>
679options		CONFIG_CLUTCH				# <config_clutch>
680options 	CONFIG_SCHED_AUTO_JOIN		# <config_sched_auto_join>
681options 	CONFIG_SCHED_RT_ALLOW		# <config_sched_rt_allow>
682
683options		CONFIG_SCHED_IDLE_IN_PLACE	# <config_sched_idle_in_place>
684options		CONFIG_SCHED_SFI		# <config_sched_sfi>
685options		CONFIG_SCHED_DEFERRED_AST	# <config_sched_deferred_ast>
686
687options		CONFIG_PREADOPT_TG			# <config_preadopt_tg>
688options		CONFIG_PREADOPT_TG_DEBUG	# <config_preadopt_tg_debug>
689
690options     CONFIG_SCHED_SMT            # <config_sched_smt>
691
692# This is overridden by the board configuration's HAS_FAST_CNTVCT.
693options	    CONFIG_SKIP_PRECISE_USER_KERNEL_TIME    # <config_skip_precise_user_kernel_time>
694
695#
696# Switch to disable cpu, wakeup and high memory watermark monitors
697#
698options 	CONFIG_NOMONITORS			# <config_nomonitors>
699
700options		MACH_KDP	    # KDP		# <mach_kdp>
701options		CONFIG_SERIAL_KDP   # KDP over serial	# <config_serial_kdp>
702options		CONFIG_KDP_INTERACTIVE_DEBUGGING	# <kdp_interactive_debugging>
703options		CONFIG_KDP_COREDUMP_ENCRYPTION	# Support for encrypting kernel coredumps	# <config_kdp_coredump_encryption>
704
705options 	CONFIG_TASKWATCH
706options 	CONFIG_USER_NOTIFICATION		# <config_user_notification>
707#
708# Kernel Power On Self Tests
709#
710options		CONFIG_XNUPOST				# <config_xnupost>
711
712#
713# Kernel proc reference instrumentation
714#
715options PROC_REF_DEBUG					# <proc_ref_debug>
716
717#
718# Kernel Voucher Attr Manager for Activity Trace
719#
720options 	CONFIG_ATM				# <config_atm>
721
722# Group related tasks together into coalitions
723options		CONFIG_COALITIONS			# <config_coalitions>
724
725# Enable support for sysdiagnose notifications
726options		CONFIG_SYSDIAGNOSE			# <config_sysdiagnose>
727
728# Configurable Security Restrictions
729options		CONFIG_CSR				# <config_csr>
730options		CONFIG_CSR_FROM_DT		# <config_csr_from_dt>
731
732# Enable collection of IO Compression statistics
733options		CONFIG_IO_COMPRESSION_STATS		# <config_io_compression_stats>
734
735#
736# Console options
737#
738options		SERIAL_CONSOLE	# bi-directional serial over UART
739options		VIDEO_CONSOLE	# uni-directional output over framebuffer
740
741#
742# Syscall options
743#
744options		CONFIG_REQUIRES_U32_MUNGING	# incoming U32 argument structures must be munged to match U64	# <config_requires_u32_munging>
745
746#
747# copyout() instrumentation
748#
749options		COPYOUT_SHIM			# Shim for copyout memory analysis via kext #<copyout_shim>
750
751#
752# Enable hardware correlation of mach absolute time
753# across intel/arm boundary
754options		CONFIG_MACH_BRIDGE_SEND_TIME #  # <config_mach_bridge_send_time>
755options		CONFIG_MACH_BRIDGE_RECV_TIME #  # <config_mach_bridge_recv_time>
756
757options		CONFIG_QUIESCE_COUNTER # Support for _COMM_PAGE_CPU_QUIESCENT_COUNTER # <config_quiesce_counter>
758options		CONFIG_ARM_PFZ	# Support for PFZ on ARM # <config_arm_pfz>
759
760#
761# Sanitizers
762#
763options		CONFIG_KASAN		# <config_kasan>
764options		CONFIG_UBSAN		# <config_ubsan>
765
766options		CONFIG_KCOV			# <config_kcov>
767options		CONFIG_KSANCOV		# <config_ksancov>
768options		CONFIG_STKSZ		# <config_stksz>
769
770# dark boot support
771options		CONFIG_DARKBOOT		# <config_darkboot>
772
773# support for tracking service port labels for stackshots/debugging
774options		CONFIG_SERVICE_PORT_INFO # <config_service_port_info>
775
776# support for processes delaying idle sleep for pending IO
777options		CONFIG_DELAY_IDLE_SLEEP # <config_delay_idle_sleep>
778
779# support for storing a 64-bit user supplied value in the proc structure
780options		CONFIG_PROC_UDATA_STORAGE # <config_proc_udata_storage>
781
782pseudo-device ksancov 1 init ksancov_init_dev # <config_ksancov>
783
784# Debug instrumentation for statistics and catching of code that
785# leaves interrupts masked or preemption disabled for an excessive
786# period of time.
787options		SCHED_HYGIENE_DEBUG # <sched_hygiene_debug>
788
789# support for system call rejection/tracing
790options		CONFIG_DEBUG_SYSCALL_REJECTION	# <config_debug_syscall_rejection>
791
792# Extensible panic log support
793options		CONFIG_EXT_PANICLOG		# <config_ext_paniclog>
794
795# support for collecting statistics on task suspension
796options		CONFIG_TASK_SUSPEND_STATS	# <config_task_suspend_stats>
797