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

Function vcpu_exception_intinfo

freebsd/amd64/vmm/vmm.c:1971–1985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1969}
1970
1971static uint64_t
1972vcpu_exception_intinfo(struct vcpu *vcpu)
1973{
1974 uint64_t info = 0;
1975
1976 if (vcpu->exception_pending) {
1977 info = vcpu->exc_vector & 0xff;
1978 info |= VM_INTINFO_VALID | VM_INTINFO_HWEXCEPTION;
1979 if (vcpu->exc_errcode_valid) {
1980 info |= VM_INTINFO_DEL_ERRCODE;
1981 info |= (uint64_t)vcpu->exc_errcode << 32;
1982 }
1983 }
1984 return (info);
1985}
1986
1987int
1988vm_entry_intinfo(struct vm *vm, int vcpuid, uint64_t *retinfo)

Callers 2

vm_entry_intinfoFunction · 0.85
vm_get_intinfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected