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

Function svm_modify_intr_shadow

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

Source from the content-addressed store, hash-verified

1061}
1062
1063static int
1064svm_modify_intr_shadow(struct svm_softc *sc, int vcpu, uint64_t val)
1065{
1066 struct vmcb_ctrl *ctrl;
1067 int oldval, newval;
1068
1069 ctrl = svm_get_vmcb_ctrl(sc, vcpu);
1070 oldval = ctrl->intr_shadow;
1071 newval = val ? 1 : 0;
1072 if (newval != oldval) {
1073 ctrl->intr_shadow = newval;
1074 VCPU_CTR1(sc->vm, vcpu, "Setting intr_shadow to %d", newval);
1075 }
1076 return (0);
1077}
1078
1079static int
1080svm_get_intr_shadow(struct svm_softc *sc, int vcpu, uint64_t *val)

Callers 2

clear_nmi_blockingFunction · 0.85
svm_setregFunction · 0.85

Calls 1

svm_get_vmcb_ctrlFunction · 0.85

Tested by

no test coverage detected