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

Function nmi_blocked

freebsd/amd64/vmm/amd/svm.c:1094–1102  ·  view source on GitHub ↗

* Once an NMI is injected it blocks delivery of further NMIs until the handler * executes an IRET. The IRET intercept is enabled when an NMI is injected to * to track when the vcpu is done handling the NMI. */

Source from the content-addressed store, hash-verified

1092 * to track when the vcpu is done handling the NMI.
1093 */
1094static int
1095nmi_blocked(struct svm_softc *sc, int vcpu)
1096{
1097 int blocked;
1098
1099 blocked = svm_get_intercept(sc, vcpu, VMCB_CTRL1_INTCPT,
1100 VMCB_INTCPT_IRET);
1101 return (blocked);
1102}
1103
1104static void
1105enable_nmi_blocking(struct svm_softc *sc, int vcpu)

Callers 3

enable_nmi_blockingFunction · 0.85
clear_nmi_blockingFunction · 0.85
svm_inj_interruptsFunction · 0.85

Calls 1

svm_get_interceptFunction · 0.85

Tested by

no test coverage detected