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

Function vm_get_capability

freebsd/amd64/vmm/vmm.c:2230–2240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2228}
2229
2230int
2231vm_get_capability(struct vm *vm, int vcpu, int type, int *retval)
2232{
2233 if (vcpu < 0 || vcpu >= vm->maxcpus)
2234 return (EINVAL);
2235
2236 if (type < 0 || type >= VM_CAP_MAX)
2237 return (EINVAL);
2238
2239 return (vmmops_getcap(vm->cookie, vcpu, type, retval));
2240}
2241
2242int
2243vm_set_capability(struct vm *vm, int vcpu, int type, int val)

Callers 2

vmmdev_ioctlFunction · 0.85
x86_emulate_cpuidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected