* 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. */
| 1092 | * to track when the vcpu is done handling the NMI. |
| 1093 | */ |
| 1094 | static int |
| 1095 | nmi_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 | |
| 1104 | static void |
| 1105 | enable_nmi_blocking(struct svm_softc *sc, int vcpu) |
no test coverage detected