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