MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vpid_init

Function vpid_init

freebsd/amd64/vmm/intel/vmx.c:575–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575static void
576vpid_init(void)
577{
578 /*
579 * VPID 0 is required when the "enable VPID" execution control is
580 * disabled.
581 *
582 * VPIDs [1,VM_MAXCPU] are used as the "overflow namespace" when the
583 * unit number allocator does not have sufficient unique VPIDs to
584 * satisfy the allocation.
585 *
586 * The remaining VPIDs are managed by the unit number allocator.
587 */
588 vpid_unr = new_unrhdr(VM_MAXCPU + 1, 0xffff, NULL);
589}
590
591static void
592vmx_disable(void *arg __unused)

Callers 1

vmx_modinitFunction · 0.85

Calls 1

new_unrhdrFunction · 0.85

Tested by

no test coverage detected