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