]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Mach Operating System | |
3 | # Copyright (c) 1986 Carnegie-Mellon University | |
4 | # Copyright 2001-2014 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 | ||
56 | options INET # # <inet> | |
57 | options HW_AST # Hardware ast support # <hw_ast> | |
58 | options HW_FOOTPRINT # Cache footprint support # <hw_foot> | |
59 | ||
60 | options MACH # Standard Mach features # <mach> | |
61 | options MACH_COMPAT # Vendor syscall compatibility # <mach> | |
62 | options MACH_FASTLINK # Fast symbolic links | |
63 | options MACH_HOST # Mach host (resource alloc.) # <host> | |
64 | options MACH_IPC_COMPAT # Enable old IPC interface # <ipc_compat> | |
65 | options MACH_IPC_TEST # Testing code/printfs # <ipc_test> | |
66 | options MACH_FLIPC # Fast-Local IPC # <mach_flipc> | |
67 | options MACH_NP # Mach IPC support # <np> | |
68 | options MACH_NBC # No buffer cache # <nbc> | |
69 | options MACH_NET # Fast network access # <mach_net> | |
70 | options MACH_XP # external pager support # <xp> | |
71 | options NO_DIRECT_RPC # for untyped mig servers # | |
72 | options LOOP # loopback support # <loop> | |
73 | options VLAN # # <vlan> | |
74 | options BOND # # <bond> | |
75 | options AH_ALL_CRYPTO # AH all crypto algs # <ah_all_crypto> | |
76 | options IPCOMP_ZLIB # IP compression using zlib # <ipcomp_zlib> | |
77 | options PF # Packet Filter # <pf> | |
78 | options PF_ALTQ # PF ALTQ (Alternate Queueing) # <pf_altq> | |
79 | options PF_ECN # PF use ECN marking # <pf_ecn> | |
80 | options PFLOG # PF log interface # <pflog> | |
81 | options PKTSCHED_CBQ # CBQ packet scheduler # <pktsched_cbq> | |
82 | options PKTSCHED_HFSC # H-FSC packet scheduler # <pktsched_hfsc> | |
83 | options PKTSCHED_PRIQ # PRIQ packet scheduler # <pktsched_priq> | |
84 | options PKTSCHED_FAIRQ # FAIRQ packet scheduler # <pktsched_fairq> | |
85 | options MEASURE_BW # interface bandwidth measurement # <measure_bw> | |
86 | options CLASSQ_BLUE # BLUE queueing algorithm # <classq_blue> | |
87 | options CLASSQ_RED # RED queueing algorithm # <classq_red> | |
88 | options CLASSQ_RIO # RIO queueing algorithm # <classq_rio> | |
89 | options DUMMYNET # dummynet support # <dummynet> | |
90 | options TRAFFIC_MGT # traffic management support # <traffic_mgt> | |
91 | options MULTICAST # Internet Protocol Class-D $ | |
92 | options TCPDEBUG # TCP debug # <tcpdebug> | |
93 | options TCP_DROP_SYNFIN # Drop TCP packets with SYN+FIN set # <tcpdrop_synfin> | |
94 | options ICMP_BANDLIM # ICMP bandwidth limiting sysctl | |
95 | options IFNET_INPUT_SANITY_CHK # allow dlil/ifnet input sanity check # <ifnet_input_chk> | |
96 | options MULTIPATH # Multipath domain # <multipath> | |
97 | options MPTCP # Multipath TCP # <mptcp> | |
98 | options SYSV_SEM # SVID semaphores # <sysv_sem> | |
99 | options SYSV_MSG # SVID messages # <sysv_msg> | |
100 | options SYSV_SHM # SVID shared mem # <sysv_shm> | |
101 | options PSYNCH # pthread synch # <psynch> | |
102 | options FLOW_DIVERT # <flow_divert> | |
103 | options NECP # <necp> | |
104 | options CONTENT_FILTER # # <content_filter> | |
105 | options PACKET_MANGLER # # <packet_mangler> | |
106 | ||
107 | # secure_kernel - secure kernel from user programs | |
108 | options SECURE_KERNEL # <secure_kernel> | |
109 | ||
110 | options OLD_SEMWAIT_SIGNAL # old semwait_signal handler | |
111 | ||
112 | # | |
113 | # 4.4 general kernel | |
114 | # | |
115 | options SOCKETS # socket support # <inet, inet6> | |
116 | options DIAGNOSTIC # diagnostics # <diagnostic> | |
117 | options GPROF # build profiling # <profile> | |
118 | options PROFILE # kernel profiling # <profile> | |
119 | options SENDFILE # sendfile # <sendfile> | |
120 | options NETWORKING # networking layer # <inet, inet6> | |
121 | options CONFIG_FSE # file system events # <config_fse> | |
122 | options CONFIG_IMAGEBOOT # local image boot # <config_imageboot> | |
123 | options CONFIG_MBUF_JUMBO # jumbo cluster pool # <config_mbuf_jumbo> | |
124 | ||
125 | options CONFIG_WORKQUEUE # <config_workqueue> | |
126 | ||
127 | # | |
128 | # 4.4 filesystems | |
129 | # | |
130 | options MOCKFS # Boot from an executable # <mockfs> | |
131 | options FIFO # fifo support # <fifo> | |
132 | options FDESC # fdesc_fs support # <fdesc> | |
133 | options DEVFS # devfs support # <devfs> | |
134 | options ROUTEFS # routefs support # <routefs> | |
135 | options NULLFS # nullfs support # <nullfs> | |
136 | options FS_COMPRESSION # fs compression # <fs_compression> | |
137 | options CONFIG_DEV_KMEM # /dev/kmem device for reading KVA # <config_dev_kmem> | |
138 | ||
139 | # | |
140 | # file system features | |
141 | # | |
142 | options QUOTA # file system quotas # <quota> | |
143 | options NAMEDSTREAMS # named stream vnop support # <namedstreams> | |
144 | options CONFIG_APPLEDOUBLE # apple double support # <config_appledouble> | |
145 | options CONFIG_VOLFS # volfs path support (legacy) # <config_volfs> | |
146 | options CONFIG_IMGSRC_ACCESS # source of imageboot dmg # <config_imgsrc_access> | |
147 | options CONFIG_TRIGGERS # trigger vnodes # <config_triggers> | |
148 | options CONFIG_EXT_RESOLVER # e.g. memberd # <config_ext_resolver> | |
149 | options CONFIG_SEARCHFS # searchfs syscall support # <config_searchfs> | |
150 | ||
151 | # | |
152 | # NFS support | |
153 | # | |
154 | options NFSCLIENT # Be an NFS client # <nfsclient> | |
155 | options NFSSERVER # Be an NFS server # <nfsserver> | |
156 | ||
157 | # | |
158 | # Machine Independent Apple Features | |
159 | # | |
160 | profile # build a profiling kernel # <profile> | |
161 | ||
162 | # | |
163 | # IPv6 Support | |
164 | # | |
165 | options "INET6" # kernel IPv6 Support # <inet6> | |
166 | options IPV6SEND # Secure Neighbor Discovery # <ipv6send> | |
167 | options IPSEC # IP security # <ipsec> | |
168 | options IPSEC_ESP # IP security # <ipsec> | |
169 | options "IPV6FIREWALL" # IPv6 Firewall Feature # <ipv6firewall> | |
170 | options "IPV6FIREWALL_DEFAULT_TO_ACCEPT" #IPv6 Firewall Feature # <ipv6firewall> | |
171 | #options "IPV6FIREWALL_VERBOSE" #IPv6 Firewall Feature # <ipv6firewall> | |
172 | ||
173 | pseudo-device gif 1 # <gif> | |
174 | pseudo-device dummy 2 # <dummy> | |
175 | pseudo-device stf 1 # <stf> | |
176 | ||
177 | options CRYPTO # <ipsec,crypto> | |
178 | options CRYPTO_SHA2 # <crypto_sha2> | |
179 | options ENCRYPTED_SWAP # <encrypted_swap> | |
180 | ||
181 | options ZLIB # inflate/deflate support # <zlib> | |
182 | ||
183 | options IF_BRIDGE # <if_bridge> | |
184 | ||
185 | # | |
186 | # configurable kernel event related resources | |
187 | # | |
188 | options CONFIG_KN_HASHSIZE=64 # <medium,large,xlarge> | |
189 | options CONFIG_KN_HASHSIZE=48 # <small,xsmall> | |
190 | options CONFIG_KN_HASHSIZE=20 # <bsmall> | |
191 | ||
192 | # | |
193 | # configurable vfs related resources | |
194 | # CONFIG_VNODES - used to pre allocate vnode related resources | |
195 | # CONFIG_VNODE_FREE_MIN - mininmum number of free vnodes | |
196 | # CONFIG_NC_HASH - name cache hash table allocation | |
197 | # CONFIG_VFS_NAMES - name strings | |
198 | # | |
199 | # 263168 magic number for medium CONFIG_VNODES is based on memory | |
200 | # Number vnodes is (memsize/64k) + 1024 | |
201 | # This is the calculation that is used by launchd in tiger | |
202 | # we are clipping the max based on 16G | |
203 | # ie ((16*1024*1024*1024)/(64 *1024)) + 1024 = 263168; | |
204 | ||
205 | options CONFIG_VNODES=263168 # <large,xlarge> | |
206 | options CONFIG_VNODES=263168 # <medium> | |
207 | options CONFIG_VNODES=10240 # <small> | |
208 | options CONFIG_VNODES=750 # <bsmall> | |
209 | ||
210 | options CONFIG_VNODE_FREE_MIN=500 # <large,xlarge> | |
211 | options CONFIG_VNODE_FREE_MIN=300 # <medium> | |
212 | options CONFIG_VNODE_FREE_MIN=200 # <small> | |
213 | options CONFIG_VNODE_FREE_MIN=100 # <xsmall> | |
214 | options CONFIG_VNODE_FREE_MIN=75 # <bsmall> | |
215 | ||
216 | options CONFIG_NC_HASH=5120 # <large,xlarge> | |
217 | options CONFIG_NC_HASH=4096 # <medium> | |
218 | options CONFIG_NC_HASH=2048 # <small,xsmall> | |
219 | options CONFIG_NC_HASH=1024 # <bsmall> | |
220 | ||
221 | options CONFIG_VFS_NAMES=5120 # <large,xlarge> | |
222 | options CONFIG_VFS_NAMES=4096 # <medium> | |
223 | options CONFIG_VFS_NAMES=3072 # <small,xsmall> | |
224 | options CONFIG_VFS_NAMES=2048 # <bsmall> | |
225 | ||
226 | options CONFIG_MAX_CLUSTERS=8 # <xlarge,large,medium> | |
227 | options CONFIG_MAX_CLUSTERS=4 # <small,xsmall,bsmall> | |
228 | ||
229 | # | |
230 | # configurable options for minumum number of buffers for kernel memory | |
231 | # | |
232 | options CONFIG_MIN_NBUF=256 # <medium,large,xlarge> | |
233 | options CONFIG_MIN_NBUF=128 # <small> | |
234 | options CONFIG_MIN_NBUF=80 # <xsmall> | |
235 | options CONFIG_MIN_NBUF=64 # <bsmall> | |
236 | ||
237 | options CONFIG_MIN_NIOBUF=128 # <medium,large,xlarge> | |
238 | options CONFIG_MIN_NIOBUF=64 # <xsmall,small> | |
239 | options CONFIG_MIN_NIOBUF=32 # <bsmall> | |
240 | ||
241 | # | |
242 | # set maximum space used for packet buffers | |
243 | # | |
244 | options CONFIG_NMBCLUSTERS="((1024 * 1024) / MCLBYTES)" # <large,xlarge> | |
245 | options CONFIG_NMBCLUSTERS="((1024 * 512) / MCLBYTES)" # <medium> | |
246 | options CONFIG_NMBCLUSTERS="((1024 * 256) / MCLBYTES)" # <bsmall,xsmall,small> | |
247 | ||
248 | # | |
249 | # Configure size of TCP hash table | |
250 | # | |
251 | options CONFIG_TCBHASHSIZE=4096 # <medium,large,xlarge> | |
252 | options CONFIG_TCBHASHSIZE=128 # <xsmall,small,bsmall> | |
253 | ||
254 | # | |
255 | # Configure bandwidth limiting sysctl | |
256 | # | |
257 | options CONFIG_ICMP_BANDLIM=250 # <medium,large,xlarge> | |
258 | options CONFIG_ICMP_BANDLIM=50 # <xsmall,small,bsmall> | |
259 | ||
260 | # | |
261 | # configurable async IO options | |
262 | # CONFIG_AIO_MAX - system wide limit of async IO requests. | |
263 | # CONFIG_AIO_PROCESS_MAX - process limit of async IO requests. | |
264 | # CONFIG_AIO_THREAD_COUNT - number of async IO worker threads created. | |
265 | # | |
266 | options CONFIG_AIO_MAX=360 # <xlarge> | |
267 | options CONFIG_AIO_MAX=180 # <large> | |
268 | options CONFIG_AIO_MAX=90 # <medium> | |
269 | options CONFIG_AIO_MAX=45 # <small> | |
270 | options CONFIG_AIO_MAX=20 # <xsmall> | |
271 | options CONFIG_AIO_MAX=10 # <bsmall> | |
272 | ||
273 | options CONFIG_AIO_PROCESS_MAX=64 # <xlarge> | |
274 | options CONFIG_AIO_PROCESS_MAX=32 # <large> | |
275 | options CONFIG_AIO_PROCESS_MAX=16 # <medium> | |
276 | options CONFIG_AIO_PROCESS_MAX=12 # <small> | |
277 | options CONFIG_AIO_PROCESS_MAX=8 # <xsmall> | |
278 | options CONFIG_AIO_PROCESS_MAX=4 # <bsmall> | |
279 | ||
280 | options CONFIG_AIO_THREAD_COUNT=16 # <xlarge> | |
281 | options CONFIG_AIO_THREAD_COUNT=8 # <large> | |
282 | options CONFIG_AIO_THREAD_COUNT=4 # <medium> | |
283 | options CONFIG_AIO_THREAD_COUNT=3 # <small> | |
284 | options CONFIG_AIO_THREAD_COUNT=2 # <xsmall,bsmall> | |
285 | ||
286 | options CONFIG_MAXVIFS=32 # <medium,large,xlarge> | |
287 | options CONFIG_MAXVIFS=16 # <small,xsmall> | |
288 | options CONFIG_MAXVIFS=2 # <bsmall> | |
289 | ||
290 | options CONFIG_MFCTBLSIZ=256 # <medium,large,xlarge> | |
291 | options CONFIG_MFCTBLSIZ=128 # <small,xsmall> | |
292 | options CONFIG_MFCTBLSIZ=16 # <bsmall> | |
293 | ||
294 | # | |
295 | # configurable kernel message buffer size | |
296 | # | |
297 | options CONFIG_MSG_BSIZE=4096 # <bsmall,small,xsmall> | |
298 | options CONFIG_MSG_BSIZE=16384 # <medium,large,xlarge> | |
299 | ||
300 | # | |
301 | # maximum size of the per-process Mach IPC table | |
302 | # | |
303 | options CONFIG_IPC_TABLE_ENTRIES_STEPS=64 # 137898 entries # <bsmall,small,xsmall> | |
304 | options CONFIG_IPC_TABLE_ENTRIES_STEPS=256 # 300714 entries # <medium,large,xlarge> | |
305 | ||
306 | ||
307 | # | |
308 | # configurable kernel - use these options to strip strings from panic | |
309 | # and printf calls. | |
310 | # no_panic_str - saves around 50K of kernel footprint. | |
311 | # no_printf_str - saves around 45K of kernel footprint. | |
312 | # | |
313 | options CONFIG_NO_PANIC_STRINGS # <no_panic_str> | |
314 | options CONFIG_NO_PRINTF_STRINGS # <no_printf_str> | |
315 | options CONFIG_NO_KPRINTF_STRINGS # <no_kprintf_str> | |
316 | ||
317 | # | |
318 | # use finer-grained lock groups for the proc subsystem | |
319 | # | |
320 | options CONFIG_FINE_LOCK_GROUPS # <medium,large,xlarge> | |
321 | ||
322 | ||
323 | # support dynamic signing of code | |
324 | # | |
325 | options CONFIG_DYNAMIC_CODE_SIGNING # <dynamic_codesigning> | |
326 | ||
327 | # enforce library validation on all processes. | |
328 | # | |
329 | options CONFIG_ENFORCE_LIBRARY_VALIDATION # <config_library_validation> | |
330 | ||
331 | # | |
332 | # code decryption... used on embedded for app protection, DSMOS on desktop | |
333 | # | |
334 | options CONFIG_CODE_DECRYPTION # <config_code_decryption> | |
335 | ||
336 | # | |
337 | # User Content Protection, used on embedded | |
338 | # | |
339 | options CONFIG_PROTECT # <config_protect> | |
340 | ||
341 | # | |
342 | # enable per-process memory priority tracking | |
343 | # | |
344 | options CONFIG_MEMORYSTATUS # <memorystatus> | |
345 | ||
346 | # | |
347 | # enable jetsam - used on embedded | |
348 | # | |
349 | options CONFIG_JETSAM # <jetsam> | |
350 | ||
351 | # | |
352 | # enable new link table implementation stats/debugging | |
353 | # (adds mesaureable overhead) | |
354 | # | |
355 | options CONFIG_LTABLE_STATS # <config_ltable_stats> | |
356 | options CONFIG_LTABLE_DEBUG # <config_ltable_debug> | |
357 | ||
358 | # | |
359 | # enable new wait queue implementation stats / debugging | |
360 | # | |
361 | options CONFIG_WAITQ_STATS # <config_waitq_stats> | |
362 | options CONFIG_WAITQ_DEBUG # <config_waitq_debug> | |
363 | ||
364 | # | |
365 | # enable freezing of suspended processes - used on embedded | |
366 | # | |
367 | options CONFIG_FREEZE # <freeze> | |
368 | ||
369 | options CHECK_CS_VALIDATION_BITMAP # <config_cs_validation_bitmap> | |
370 | ||
371 | # | |
372 | # enable detectiion of file cache thrashing - used on platforms with | |
373 | # dynamic VM compression enabled | |
374 | # | |
375 | options CONFIG_PHANTOM_CACHE # <phantom_cache> | |
376 | ||
377 | # | |
378 | # memory pressure event support | |
379 | # | |
380 | options VM_PRESSURE_EVENTS # <vm_pressure_events> | |
381 | ||
382 | options CONFIG_SECLUDED_MEMORY # <config_secluded_memory> | |
383 | ||
384 | options CONFIG_BACKGROUND_QUEUE # <config_background_queue> | |
385 | ||
386 | # | |
387 | # I/O Scheduling | |
388 | # | |
389 | options CONFIG_IOSCHED # <config_iosched> | |
390 | ||
391 | # | |
392 | # Accounting for I/O usage | |
393 | # | |
394 | options CONFIG_IO_ACCOUNTING # <config_io_accounting> | |
395 | ||
396 | # | |
397 | # Enable inheritance of importance through specially marked mach ports and for file locks | |
398 | # For now debug is enabled wherever inheritance is | |
399 | # | |
400 | options IMPORTANCE_INHERITANCE # <importance_inheritance> | |
401 | options IMPORTANCE_DEBUG # <importance_inheritance> | |
402 | ||
403 | options CONFIG_TELEMETRY # <config_telemetry> | |
404 | ||
405 | options CONFIG_PROC_UUID_POLICY # <config_proc_uuid_policy> | |
406 | ||
407 | # | |
408 | # ECC data logging | |
409 | # | |
410 | options CONFIG_ECC_LOGGING # <config_ecc_logging> | |
411 | ||
412 | # | |
413 | # Application core dumps | |
414 | # | |
415 | options CONFIG_COREDUMP # <config_coredump> | |
416 | ||
417 | # | |
418 | # Ethernet (ARP) | |
419 | # | |
420 | pseudo-device ether # <networking,inet,inet6> | |
421 | # | |
422 | # Network loopback device | |
423 | # | |
424 | pseudo-device loop # <networking,inet,inet6> | |
425 | # | |
426 | # UCB pseudo terminal service | |
427 | # | |
428 | pseudo-device pty 512 init pty_init # <xlarge> | |
429 | pseudo-device pty 256 init pty_init # <large> | |
430 | pseudo-device pty 128 init pty_init # <medium> | |
431 | pseudo-device pty 48 init pty_init # <small> | |
432 | pseudo-device pty 16 init pty_init # <xsmall> | |
433 | pseudo-device pty 8 init pty_init # <bsmall> | |
434 | # | |
435 | # Cloning pseudo terminal service | |
436 | # | |
437 | pseudo-device ptmx 1 init ptmx_init | |
438 | ||
439 | # | |
440 | # vnode device | |
441 | # | |
442 | pseudo-device vndevice 4 init vndevice_init # <development,debug> | |
443 | ||
444 | # | |
445 | # memory device | |
446 | pseudo-device mdevdevice 1 init mdevinit | |
447 | ||
448 | # | |
449 | # | |
450 | # packet filter device | |
451 | # | |
452 | pseudo-device bpfilter 4 init bpf_init # <networking,inet,inet6> | |
453 | ||
454 | # | |
455 | # fsevents device | |
456 | pseudo-device fsevents 1 init fsevents_init # <config_fse> | |
457 | ||
458 | pseudo-device random 1 init random_init | |
459 | pseudo-device dtrace 1 init dtrace_init # <config_dtrace> | |
460 | pseudo-device helper 1 init helper_init # <config_dtrace> | |
461 | pseudo-device lockstat 1 init lockstat_init # <config_dtrace> | |
462 | pseudo-device sdt 1 init sdt_init # <config_dtrace> | |
463 | pseudo-device systrace 1 init systrace_init # <config_dtrace> | |
464 | pseudo-device fbt 1 init fbt_init # <config_dtrace> | |
465 | pseudo-device profile_prvd 1 init profile_init # <config_dtrace> | |
466 | ||
467 | # | |
468 | # IOKit configuration options | |
469 | # | |
470 | ||
471 | options HIBERNATION # system hibernation # <hibernation> | |
472 | options IOKITCPP # C++ implementation # <iokitcpp> | |
473 | options IOKITSTATS # IOKit statistics # <iokitstats> | |
474 | options IOTRACKING # IOKit tracking # <iotracking> | |
475 | options CONFIG_SLEEP # # <config_sleep> | |
476 | options CONFIG_MAX_THREADS=64 # IOConfigThread threads | |
477 | options NO_KEXTD # <no_kextd> | |
478 | options NO_KERNEL_HID # <no_kernel_hid> | |
479 | ||
480 | # | |
481 | # Libkern configuration options | |
482 | # | |
483 | ||
484 | options LIBKERNCPP # C++ implementation # <libkerncpp> | |
485 | options CONFIG_KXLD # kxld/runtime linking of kexts # <config_kxld> | |
486 | options CONFIG_KEC_FIPS # Kernel External Components for FIPS compliance (KEC_FIPS) # <config_kec_fips> | |
487 | ||
488 | # Note that when adding this config option to an architecture, one MUST | |
489 | # add the architecture to the preprocessor test at the beginning of | |
490 | # libkern/kmod/cplus_{start.c,stop.c}. | |
491 | options CONFIG_STATIC_CPPINIT # Static library initializes kext cpp runtime # <config_static_cppinit> | |
492 | ||
493 | # | |
494 | # libsa configuration options | |
495 | # | |
496 | ||
497 | # CONFIG_KEXT_BASEMENT - alloc post boot loaded kexts after prelinked kexts | |
498 | # | |
499 | options CONFIG_KEXT_BASEMENT # # <config_kext_basement> | |
500 | ||
501 | # | |
502 | # Persona Management | |
503 | # | |
504 | options CONFIG_PERSONAS # Persona management # <config_personas> | |
505 | options PERSONA_DEBUG # Persona debugging # <persona_debug> | |
506 | ||
507 | # | |
508 | # security configuration options | |
509 | # | |
510 | ||
511 | options CONFIG_MACF # Mandatory Access Control Framework # <config_macf> | |
512 | options CONFIG_MACF_SOCKET_SUBSET # MAC socket subest (no labels) # <config_macf> | |
513 | #options CONFIG_MACF_SOCKET # MAC socket labels # <config_macf> | |
514 | #options CONFIG_MACF_NET # mbuf # <config_macf> | |
515 | #options CONFIG_MACF_DEBUG # debug # <config_macf> | |
516 | ||
517 | options CONFIG_AUDIT # Kernel auditing # <config_audit> | |
518 | ||
519 | ||
520 | # | |
521 | # MACH configuration options. | |
522 | # | |
523 | # TASK_SWAPPER enables code that manages demand for physical memory by | |
524 | # forcibly suspending tasks when the demand exceeds supply. This | |
525 | # option should be on. | |
526 | # | |
527 | options MACH_RT | |
528 | options TASK_SWAPPER # <task_swapper_disabled> | |
529 | ||
530 | # | |
531 | # This defines configuration options that are normally used only during | |
532 | # kernel code development and debugging. They add run-time error checks or | |
533 | # statistics gathering, which will slow down the system | |
534 | # | |
535 | ########################################################## | |
536 | # | |
537 | # MACH_ASSERT controls the assert() and ASSERT() macros, used to verify the | |
538 | # consistency of various algorithms in the kernel. The performance impact | |
539 | # of this option is significant. | |
540 | # | |
541 | options MACH_ASSERT # # <mach_assert> | |
542 | # | |
543 | # MACH_DEBUG enables the mach_debug_server, a message interface used to | |
544 | # retrieve or control various statistics. This interface may expose data | |
545 | # structures that would not normally be allowed outside the kernel, and | |
546 | # MUST NOT be enabled on a released configuration. | |
547 | # Other options here enable information retrieval for specific subsystems | |
548 | # | |
549 | options MACH_DEBUG # IPC debugging interface # <mdebug> | |
550 | options MACH_IPC_DEBUG # Enable IPC debugging calls # <ipc_debug> | |
551 | options MACH_VM_DEBUG # # <debug> | |
552 | # | |
553 | # MACH_MP_DEBUG control the possible dead locks that may occur by controlling | |
554 | # that IPL level has been raised down to SPL0 after some calls to | |
555 | # hardclock device driver. | |
556 | # | |
557 | options MACH_MP_DEBUG # # <debug> | |
558 | # | |
559 | # ZONE_DEBUG keeps track of all zalloc()ed elements to perform further | |
560 | # operations on each element. | |
561 | # | |
562 | options ZONE_DEBUG # # <debug> | |
563 | ||
564 | options CONFIG_ZLEAKS # Live zone leak debugging # <zleaks> | |
565 | ||
566 | # | |
567 | # CONFIG_TASK_ZONE_INFO allows per-task zone information to be extracted | |
568 | # Primarily useful for xnu debug and development. | |
569 | # | |
570 | options CONFIG_TASK_ZONE_INFO # <task_zone_info> | |
571 | # | |
572 | # CONFIG_DEBUGGER_FOR_ZONE_INFO restricts zone info so that it is only | |
573 | # available when the kernel is being debugged. | |
574 | # | |
575 | options CONFIG_DEBUGGER_FOR_ZONE_INFO # <debugger_for_zone_info> | |
576 | # | |
577 | # XPR_DEBUG enables the gathering of data through the XPR macros inserted | |
578 | # into various subsystems. This option is normally only enabled for | |
579 | # specific performance or behavior studies, as the overhead in both | |
580 | # code and data space is large. The data is normally retrieved through | |
581 | # the kernel debugger (kdb) or by reading /dev/kmem. | |
582 | # | |
583 | options XPR_DEBUG # # <debug> | |
584 | # | |
585 | # MACH_LDEBUG controls the internal consistency checks and | |
586 | # data gathering in the locking package. This also enables a debug-only | |
587 | # version of simple-locks on uniprocessor machines. The code size and | |
588 | # performance impact of this option is significant. | |
589 | # | |
590 | options MACH_LDEBUG # # <debug> | |
591 | ||
592 | # | |
593 | # configuration option for full, partial, or no kernel debug event tracing | |
594 | # | |
595 | options KDEBUG # kernel tracing # <kdebug> | |
596 | options IST_KDEBUG # limited tracing # <ist_kdebug> | |
597 | options NO_KDEBUG # no kernel tracing # <no_kdebug> | |
598 | ||
599 | # | |
600 | # CONFIG_DTRACE enables code needed to support DTrace. Currently this is | |
601 | # only used for delivery of traps/interrupts to DTrace. | |
602 | # | |
603 | options CONFIG_DTRACE # # <config_dtrace> | |
604 | ||
605 | # kernel performance tracing | |
606 | options KPERF # <kperf> | |
607 | options KPC # <kpc> | |
608 | ||
609 | # MACH_COUNTERS enables code that handles various counters in the system. | |
610 | # | |
611 | options MACH_COUNTERS # # <debug> | |
612 | ||
613 | # DEVELOPMENT define for development builds | |
614 | options DEVELOPMENT # dev kernel # <development> | |
615 | ||
616 | # DEBUG kernel | |
617 | options DEBUG # general debugging code # <debug> | |
618 | ||
619 | ########################################################## | |
620 | # | |
621 | # This defines configuration options that are normally used only during | |
622 | # kernel code development and performance characterization. They add run-time | |
623 | # statistics gathering, which will slow down the system, | |
624 | # | |
625 | ########################################################## | |
626 | # | |
627 | # MACH_IPC_STATS controls the collection of statistics in the MACH IPC | |
628 | # subsystem. | |
629 | # | |
630 | #options MACH_IPC_STATS | |
631 | # | |
632 | # MACH_CLUSTER_STATS controls the collection of various statistics concerning | |
633 | # the effectiveness and behavior of the clustered pageout and pagein | |
634 | # code. | |
635 | # | |
636 | #options MACH_CLUSTER_STATS | |
637 | ||
638 | options MACH_BSD # BSD subsystem on top of Mach # <mach_bsd> | |
639 | options IOKIT # # <iokit> | |
640 | ||
641 | # | |
642 | # configurable kernel related resources (CONFIG_THREAD_MAX needs to stay in | |
643 | # sync with bsd/conf/MASTER until we fix the config system... todo XXX | |
644 | # | |
645 | options CONFIG_THREAD_MAX=2560 # <medium,large,xlarge> | |
646 | options CONFIG_THREAD_MAX=1536 # <small,xsmall> | |
647 | options CONFIG_THREAD_MAX=1024 # <bsmall> | |
648 | ||
649 | options CONFIG_TASK_MAX=1024 # <medium,large,xlarge> | |
650 | options CONFIG_TASK_MAX=768 # <small,> | |
651 | options CONFIG_TASK_MAX=512 # <xsmall,bsmall> | |
652 | ||
653 | options CONFIG_ZONE_MAP_MIN=12582912 # <medium,large,xlarge> | |
654 | options CONFIG_ZONE_MAP_MIN=6291456 # <small> | |
655 | options CONFIG_ZONE_MAP_MIN=1048576 # <xsmall,bsmall> | |
656 | ||
657 | # Sizes must be a power of two for the zhash to | |
658 | # be able to just mask off bits instead of mod | |
659 | options CONFIG_ZLEAK_ALLOCATION_MAP_NUM=16384 #<medium,large,xlarge> | |
660 | options CONFIG_ZLEAK_ALLOCATION_MAP_NUM=8192 #<small,xsmall,bsmall> | |
661 | options CONFIG_ZLEAK_TRACE_MAP_NUM=8192 #<medium,large,xlarge> | |
662 | options CONFIG_ZLEAK_TRACE_MAP_NUM=4096 #<small,xsmall,bsmall> | |
663 | ||
664 | # vc_progress_white - make the progress gear white instead of black | |
665 | options CONFIG_VC_PROGRESS_WHITE # <vc_progress_white> | |
666 | ||
667 | # | |
668 | # Timeshare scheduler implementations | |
669 | # | |
670 | options CONFIG_SCHED_TRADITIONAL # <config_sched_traditional> | |
671 | options CONFIG_SCHED_PROTO # <config_sched_proto> | |
672 | options CONFIG_SCHED_GRRR # <config_sched_grrr> | |
673 | options CONFIG_SCHED_GRRR_CORE # <config_sched_grrr> | |
674 | options CONFIG_SCHED_MULTIQ # <config_sched_multiq> | |
675 | options CONFIG_SCHED_TIMESHARE_CORE # <config_sched_traditional,config_sched_multiq> | |
676 | ||
677 | options CONFIG_SCHED_IDLE_IN_PLACE # <config_sched_idle_in_place> | |
678 | options CONFIG_SCHED_SFI # <config_sched_sfi> | |
679 | options CONFIG_GZALLOC # <config_gzalloc> | |
680 | options CONFIG_SCHED_DEFERRED_AST # <config_sched_deferred_ast> | |
681 | ||
682 | # Enable allocation of contiguous physical memory through vm_map_enter_cpm() | |
683 | options VM_CPM # <vm_cpm> | |
684 | ||
685 | options CONFIG_SKIP_PRECISE_USER_KERNEL_TIME # <config_skip_precise_user_kernel_time> | |
686 | ||
687 | # | |
688 | # Switch to disable cpu, wakeup and high memory watermark monitors | |
689 | # | |
690 | options CONFIG_NOMONITORS # <config_nomonitors> | |
691 | ||
692 | options MACH_KDP # KDP # <mach_kdp> | |
693 | options CONFIG_SERIAL_KDP # KDP over serial # <config_serial_kdp> | |
694 | options CONFIG_KDP_INTERACTIVE_DEBUGGING # <kdp_interactive_debugging> | |
695 | ||
696 | # | |
697 | # Kernel Power On Self Tests | |
698 | # | |
699 | options CONFIG_XNUPOST # <config_xnupost> | |
700 | ||
701 | # | |
702 | # Kernel proc reference instrumentation | |
703 | # | |
704 | options PROC_REF_DEBUG # <proc_ref_debug> | |
705 | ||
706 | # | |
707 | # Kernel OS reason debug instrumentation | |
708 | # | |
709 | options OS_REASON_DEBUG # <os_reason_debug> | |
710 | ||
711 | # | |
712 | # Kernel Voucher Attr Manager for Activity Trace | |
713 | # | |
714 | options CONFIG_ATM # <config_atm> | |
715 | ||
716 | # | |
717 | # Kernel Voucher Attr Manager for BANK | |
718 | # | |
719 | options CONFIG_BANK # <config_bank> | |
720 | ||
721 | ||
722 | # Group related tasks together into coalitions | |
723 | options CONFIG_COALITIONS # <config_coalitions> | |
724 | ||
725 | # Enable support for sysdiagnose notifications | |
726 | options CONFIG_SYSDIAGNOSE # <config_sysdiagnose> | |
727 | ||
728 | # Configurable Security Restrictions | |
729 | options CONFIG_CSR # <config_csr> | |
730 | ||
731 | # | |
732 | # Console options | |
733 | # | |
734 | options SERIAL_CONSOLE # bi-directional serial over UART | |
735 | options VIDEO_CONSOLE # uni-directional output over framebuffer | |
736 | ||
737 | # | |
738 | # Syscall options | |
739 | # | |
740 | options CONFIG_REQUIRES_U32_MUNGING # incoming U32 argument structures must be munged to match U64 # <config_requires_u32_munging> |