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

Function vmx_setdesc

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

Source from the content-addressed store, hash-verified

3435}
3436
3437static int
3438vmx_setdesc(void *arg, int vcpu, int reg, struct seg_desc *desc)
3439{
3440 int hostcpu, running;
3441 struct vmx *vmx = arg;
3442
3443 running = vcpu_is_running(vmx->vm, vcpu, &hostcpu);
3444 if (running && hostcpu != curcpu)
3445 panic("vmx_setdesc: %s%d is running", vm_name(vmx->vm), vcpu);
3446
3447 return (vmcs_setdesc(&vmx->vmcs[vcpu], running, reg, desc));
3448}
3449
3450static int
3451vmx_getcap(void *arg, int vcpu, int type, int *retval)

Callers

nothing calls this directly

Calls 4

vcpu_is_runningFunction · 0.85
vm_nameFunction · 0.85
vmcs_setdescFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected