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

Function vm_inject_nmi

freebsd/amd64/vmm/vmm.c:2138–2151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2136static VMM_STAT(VCPU_NMI_COUNT, "number of NMIs delivered to vcpu");
2137
2138int
2139vm_inject_nmi(struct vm *vm, int vcpuid)
2140{
2141 struct vcpu *vcpu;
2142
2143 if (vcpuid < 0 || vcpuid >= vm->maxcpus)
2144 return (EINVAL);
2145
2146 vcpu = &vm->vcpu[vcpuid];
2147
2148 vcpu->nmi_pending = 1;
2149 vcpu_notify_event(vm, vcpuid, false);
2150 return (0);
2151}
2152
2153int
2154vm_nmi_pending(struct vm *vm, int vcpuid)

Callers 4

vmmdev_ioctlFunction · 0.85
vlapic_fire_lvtFunction · 0.85
vlapic_trigger_lvtFunction · 0.85

Calls 1

vcpu_notify_eventFunction · 0.85

Tested by

no test coverage detected