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

Function vm_get_intinfo

freebsd/amd64/vmm/vmm.c:2030–2042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2028}
2029
2030int
2031vm_get_intinfo(struct vm *vm, int vcpuid, uint64_t *info1, uint64_t *info2)
2032{
2033 struct vcpu *vcpu;
2034
2035 if (vcpuid < 0 || vcpuid >= vm->maxcpus)
2036 return (EINVAL);
2037
2038 vcpu = &vm->vcpu[vcpuid];
2039 *info1 = vcpu->exitintinfo;
2040 *info2 = vcpu_exception_intinfo(vcpu);
2041 return (0);
2042}
2043
2044int
2045vm_inject_exception(struct vm *vm, int vcpuid, int vector, int errcode_valid,

Callers 1

vmmdev_ioctlFunction · 0.85

Calls 1

vcpu_exception_intinfoFunction · 0.85

Tested by

no test coverage detected