__read_mostly
int aarch64_bti_enabled __read_mostly;
int aarch64_hafdbs_enabled __read_mostly;
int aarch64_pan_enabled __read_mostly;
int aarch64_pac_enabled __read_mostly;
uint64_t ctr_el0_usr __read_mostly;
static bool __md_early __read_mostly = true;
volatile u_long cpus_paused __read_mostly;
void (*cpu_idle_fn)(void) __read_mostly = cpu_idle_default;
u_long cpu_implver __read_mostly;
u_long cpu_amask __read_mostly;
struct cpu_info *cpu_info_list __read_mostly = &cpu_info_primary;
volatile u_long cpus_booted __read_mostly;
volatile u_long cpus_running __read_mostly;
__read_mostly;
static int protection_codes[2][8] __read_mostly;
pt_entry_t *kernel_lev1map __read_mostly;
static pt_entry_t *VPT __read_mostly;
paddr_t avail_start __read_mostly;
paddr_t avail_end __read_mostly;
static vaddr_t virtual_end __read_mostly;
static bool pmap_initialized __read_mostly;
u_long pmap_pages_stolen __read_mostly;
static u_long pmap_ncpuids __read_mostly;
int pmap_pv_lowat __read_mostly = PMAP_PV_LOWAT;
static struct evcnt pmap_growkernel_evcnt __read_mostly;
static struct pool_cache pmap_pmap_cache __read_mostly;
static struct pool_cache pmap_l1pt_cache __read_mostly;
static struct pool_cache pmap_pv_cache __read_mostly;
static u_int pmap_max_asn __read_mostly;
struct rpb *hwrpb __read_mostly;
static unsigned long qemu_nsec_per_tick __read_mostly = (unsigned long)-1;
static uint64_t dec_6600_intr_enables __read_mostly;
static uint64_t dec_6600_cpu_intr_enables[4] __read_mostly;
__read_mostly;
vaddr_t vm_min_kernel_address __read_mostly = VM_MIN_KERNEL_ADDRESS_DEFAULT;
vaddr_t vm_max_kernel_address __read_mostly = VM_MAX_KERNEL_ADDRESS_DEFAULT;
pd_entry_t *pte_base __read_mostly;
static bool __md_early __read_mostly = true;
struct cpu_info *cpu_info[NCPUINFO] __read_mostly = {
static bool __md_early __read_mostly;
static paddr_t null_segtab_pa __read_mostly;
static int pmap_mmuclass __read_mostly;
static void (*pmap_load_urp_func)(paddr_t) __read_mostly;
static vaddr_t pmap_aliasmask __read_mostly;
vaddr_t pmap_direct_base __read_mostly;
vaddr_t pmap_direct_end __read_mostly;
static pt_entry_t pmap_pte_pbmt_mask __read_mostly;
static pt_entry_t pmap_pte_pma __read_mostly;
static pt_entry_t pmap_pte_nc __read_mostly;
static pt_entry_t pmap_pte_io __read_mostly;
uint32_t cpu_feature[7] __read_mostly; /* X86 CPUID feature bits */
} cpu_rng_mode __read_mostly = CPU_RNG_NONE;
static struct krndsource cpu_rng_source __read_mostly;
struct pmap *efi_runtime_pmap __read_mostly;
static struct efi_rt efi_rt __read_mostly;
static struct efi_ops efi_runtime_ops __read_mostly;
uint32_t x86_fpu_mxcsr_mask __read_mostly = 0;
static const void *safe_fpu __read_mostly = &safe_fpu_storage;
static const void *zero_fpu __read_mostly = &zero_fpu_storage;
int x86_fpu_save __read_mostly;
unsigned int x86_fpu_save_size __read_mostly = sizeof(struct save87);
uint64_t x86_xsave_features __read_mostly = 0;
size_t x86_xsave_offsets[XSAVE_MAX_COMPONENT+1] __read_mostly;
size_t x86_xsave_sizes[XSAVE_MAX_COMPONENT+1] __read_mostly;
bool x2apic_mode __read_mostly;
static bool lapic_broken_periodic __read_mostly;
struct pcpu_area *pcpuarea __read_mostly;
static bool cpu_pat_enabled __read_mostly = false;
struct bootspace bootspace __read_mostly;
struct slotspace slotspace __read_mostly;
pd_entry_t pmap_pg_nx __read_mostly = 0;
pd_entry_t pmap_pg_g __read_mostly = 0;
int pmap_largepages __read_mostly = 0;
paddr_t lowmem_rsvd __read_mostly;
paddr_t avail_start __read_mostly; /* PA of first available physical page */
paddr_t avail_end __read_mostly; /* PA of last available physical page */
static pt_entry_t protection_codes[8] __read_mostly;
static bool pmap_initialized __read_mostly = false; /* pmap_init done yet? */
static vaddr_t virtual_avail __read_mostly; /* VA of first free KVA */
static vaddr_t virtual_end __read_mostly; /* VA of last free KVA */
volatile vaddr_t local_apic_va __read_mostly;
paddr_t local_apic_pa __read_mostly;
vaddr_t pmap_direct_base __read_mostly;
vaddr_t pmap_direct_end __read_mostly;
bool pmap_ept_has_ad __read_mostly;
static bool mds_mitigation_enabled __read_mostly = false;
static bool v2_mitigation_enabled __read_mostly = false;
static bool v4_mitigation_enabled __read_mostly = false;
static bool taa_mitigation_enabled __read_mostly = false;
bool svs_enabled __read_mostly = false;
bool svs_pcid __read_mostly = false;
static uint64_t svs_pcid_kcr3 __read_mostly;
static uint64_t svs_pcid_ucr3 __read_mostly;
uint64_t tsc_freq __read_mostly; /* exported for sysctl */
static bool x86_user_ldt_enabled __read_mostly = false;
uint32_t cpu_feature[7] __read_mostly; /* X86 CPUID feature bits
bool x2apic_mode __read_mostly = false;
volatile shared_info_t *HYPERVISOR_shared_info __read_mostly;
unsigned long *xpmap_phys_to_machine_mapping __read_mostly;
pt_entry_t xpmap_pg_nx __read_mostly;
volatile shared_info_t *HYPERVISOR_shared_info __read_mostly;
static const struct aes_impl *aes_md_impl __read_mostly;
static const struct aes_impl *aes_impl __read_mostly;
static const struct chacha_impl *chacha_md_impl __read_mostly;
static const struct chacha_impl *chacha_impl __read_mostly = &chacha_ref_impl;
static percpu_t *cprng_fast_percpu __read_mostly;
static void *cprng_fast_softint __read_mostly;
static struct psref_class *audio_psref_class __read_mostly;
static struct hpet_softc *hpet0 __read_mostly;
static void * dev_zero_page __read_mostly;
static vaddr_t dev_mem_addr __read_mostly;
static const struct nvmm_impl *nvmm_impl __read_mostly = NULL;
static uint8_t *svm_asidmap __read_mostly;
static uint32_t svm_maxasid __read_mostly;
static bool svm_decode_assist __read_mostly;
static uint32_t svm_ctrl_tlb_flush __read_mostly;
static uint64_t svm_xcr0_mask __read_mostly;
static uint32_t svm_cpuid_max_basic __read_mostly;
static uint32_t svm_cpuid_max_extended __read_mostly;
static uint32_t vmx_cpuid_max_basic __read_mostly;
static uint32_t vmx_cpuid_max_extended __read_mostly;
static size_t vmx_msrlist_entry_nmsr __read_mostly = VMX_MSRLIST_EXIT_NMSR;
static uint64_t vmx_tlb_flush_op __read_mostly;
static uint64_t vmx_ept_flush_op __read_mostly;
static uint64_t vmx_eptp_type __read_mostly;
static uint64_t vmx_pinbased_ctls __read_mostly;
static uint64_t vmx_procbased_ctls __read_mostly;
static uint64_t vmx_procbased_ctls2 __read_mostly;
static uint64_t vmx_entry_ctls __read_mostly;
static uint64_t vmx_exit_ctls __read_mostly;
static uint64_t vmx_cr0_fixed0 __read_mostly;
static uint64_t vmx_cr0_fixed1 __read_mostly;
static uint64_t vmx_cr4_fixed0 __read_mostly;
static uint64_t vmx_cr4_fixed1 __read_mostly;
static uint8_t *vmx_asidmap __read_mostly;
static uint32_t vmx_maxasid __read_mostly;
static uint64_t vmx_xcr0_mask __read_mostly;
static struct percpu *tprof_cpus __read_mostly; /* tprof_cpu_t * */
int cold __read_mostly = 1; /* still working on startup */
int shutting_down __read_mostly; /* system is shutting down */
static pool_cache_t filedesc_cache __read_mostly;
static pool_cache_t file_cache __read_mostly;
static struct percpu *entropy_percpu __read_mostly; /* struct entropy_cpu */
static void *entropy_sih __read_mostly; /* softint handler */
static struct lwp *entropy_lwp __read_mostly; /* housekeeping thread */
static struct krndsource seed_rndsource __read_mostly;
unsigned heartbeat_max_period_secs __read_mostly;
unsigned heartbeat_max_period_ticks __read_mostly;
void *heartbeat_sih __read_mostly;
static pserialize_t ksyms_psz __read_mostly;
static pool_cache_t lwp_cache __read_mostly;
__read_mostly
__read_mostly
__read_mostly
static struct pid_table *pid_table __read_mostly;
static u_int pid_tbl_mask __read_mostly;
static u_int pid_alloc_lim __read_mostly;
static pid_t pid_max __read_mostly;
static pool_cache_t sigacts_cache __read_mostly;
static pool_cache_t ksiginfo_cache __read_mostly;
static pool_cache_t threadpool_thread_pc __read_mostly;
static void *ptimer_sih __read_mostly;
static void *callout_sih __read_mostly;
u_int sched_rrticks __read_mostly;
static bool kasan_enabled __read_mostly = false;
struct cprng_strong *kern_cprng __read_mostly; /* IPL_SOFTSERIAL */
struct cprng_strong *user_cprng __read_mostly; /* IPL_NONE */
static struct sysctllog *cprng_sysctllog __read_mostly;
int ncpu __read_mostly;
int ncpuonline __read_mostly;
bool mp_online __read_mostly;
static bool cpu_topology_present __read_mostly;
static bool cpu_topology_haveslow __read_mostly;
struct cpu_info **cpu_infos __read_mostly;
kcpuset_t * kcpuset_attached __read_mostly = NULL;
kcpuset_t * kcpuset_running __read_mostly = NULL;
static struct cpufreq *cf_backend __read_mostly = NULL;
static bool kcsan_enabled __read_mostly;
static ipi_mbox_t * ipi_mboxes __read_mostly;
static size_t kc_nfields __read_mostly = KC_NFIELDS_EARLY;
static size_t kc_memsize __read_mostly;
static size_t kc_bitsize __read_mostly = KC_BITSIZE_EARLY;
static size_t kmem_cache_maxidx __read_mostly;
static size_t kmem_cache_big_maxidx __read_mostly;
static bool kmsan_enabled __read_mostly;
static vmem_t * percpu_offset_arena __read_mostly;
static bool vmem_btag_pool_initialized __read_mostly;
static pool_cache_t mqmsg_cache __read_mostly;
static u_int maxbigpipes __read_mostly = LIMITBIGPIPES;
static selcluster_t *selcluster[SELCLUSTERS] __read_mostly;
static int direct_select __read_mostly = 0;
struct semid_ds * sema __read_mostly;
static struct __sem * sem __read_mostly;
static kcondvar_t * semcv __read_mostly;
static int * semu __read_mostly;
static bool sem_realloc_state __read_mostly;
static struct sem_undo *semu_list __read_mostly;
struct shmid_ds * shmsegs __read_mostly;
static int shm_use_phys __read_mostly;
static u_long ksem_pshared_hashmask __read_mostly;
static pool_cache_t cache_pool __read_mostly;
int cache_lru_maxdeact __read_mostly = 2; /* max # to deactivate */
int cache_lru_maxscan __read_mostly = 64; /* max # to scan/reclaim */
int cache_maxlen __read_mostly = NC_NLEN_MASK; /* max name length to cache */
int cache_stat_interval __read_mostly = 300; /* in seconds */
int vfs_timestamp_precision __read_mostly = TSP_NSEC;
static struct psref_class *bpf_psref_class __read_mostly;
static struct psref_class *ifnet_psref_class __read_mostly;
static struct workqueue *ifnet_link_state_wq __read_mostly;
static struct workqueue *if_slowtimo_wq __read_mostly;
struct psref_class *ifa_psref_class __read_mostly;
pfil_head_t * if_pfil __read_mostly;
struct psref_class *bridge_psref_class __read_mostly;
struct psref_class *gv_psref_class __read_mostly;
struct psref_class *iv_psref_class __read_mostly;
pserialize_t l2tp_psz __read_mostly;
struct psref_class *lv_psref_class __read_mostly;
unsigned int sppp_keepalive_interval __read_mostly
pserialize_t vlan_psz __read_mostly;
static struct psref_class *ifvm_psref_class __read_mostly;
struct psref_class *wg_psref_class __read_mostly;
static struct pktqueue *wg_pktq __read_mostly;
static struct workqueue *wg_wq __read_mostly;
*lagg_psref_class __read_mostly;
*lagg_port_psref_class __read_mostly;
static __read_mostly npf_t * npf_kernel_ctx = NULL;
static npf_alg_t * alg_icmp __read_mostly;
static bpf_ctx_t *npf_bpfctx __read_mostly;
static pool_cache_t nat_cache __read_mostly;
static pool_cache_t tblent_cache __read_mostly;
static npf_workerinfo_t * worker_info __read_mostly;
static LIST_HEAD(, pfil_head) pfil_head_list __read_mostly =
static struct psref_class *pfil_psref_class __read_mostly;
static LIST_HEAD(, pktqueue) pktqueue_list __read_mostly;
static krwlock_t pktqueue_list_lock __read_mostly;
static once_t pktqueue_list_init_once __read_mostly;
static struct psref_class *rt_psref_class __read_mostly;
pktqueue_t * at_pktq1 __read_mostly;
pktqueue_t * at_pktq2 __read_mostly;
pktqueue_t * can_pktq __read_mostly;
pktqueue_t * arp_pktq __read_mostly;
static percpu_t * igmpstat_percpu __read_mostly;
static int ip_checkinterface __read_mostly = 0;
pktqueue_t * ip_pktq __read_mostly;
pfil_head_t * inet_pfil_hook __read_mostly;
percpu_t * ipstat_percpu __read_mostly;
pktqueue_t *ip6_pktq __read_mostly;
static struct secpolicy ipsec_dummy_sp __read_mostly = {
extern int ipsec_used __read_mostly;
extern int ipsec_enabled __read_mostly;
pktqueue_t * mpls_pktq __read_mostly;
extern int maxlwp __read_mostly; /* max number of lwps */
static struct uvm_physseg_graph uvm_physseg_graph __read_mostly;
static struct uvm_physseg vm_physmem[VM_PHYSSEG_MAX] __read_mostly;
static int vm_nphysseg __read_mostly = 0;