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

Function vpid_free

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

Source from the content-addressed store, hash-verified

507}
508
509static void
510vpid_free(int vpid)
511{
512 if (vpid < 0 || vpid > 0xffff)
513 panic("vpid_free: invalid vpid %d", vpid);
514
515 /*
516 * VPIDs [0,VM_MAXCPU] are special and are not allocated from
517 * the unit number allocator.
518 */
519
520 if (vpid > VM_MAXCPU)
521 free_unr(vpid_unr, vpid);
522}
523
524static void
525vpid_alloc(uint16_t *vpid, int num)

Callers 2

vpid_allocFunction · 0.85
vmx_cleanupFunction · 0.85

Calls 2

free_unrFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected