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

Function svm_get_intercept

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

Source from the content-addressed store, hash-verified

382}
383
384static __inline int
385svm_get_intercept(struct svm_softc *sc, int vcpu, int idx, uint32_t bitmask)
386{
387 struct vmcb_ctrl *ctrl;
388
389 KASSERT(idx >=0 && idx < 5, ("invalid intercept index %d", idx));
390
391 ctrl = svm_get_vmcb_ctrl(sc, vcpu);
392 return (ctrl->intercept[idx] & bitmask ? 1 : 0);
393}
394
395static __inline void
396svm_set_intercept(struct svm_softc *sc, int vcpu, int idx, uint32_t bitmask,

Callers 3

vintr_intercept_enabledFunction · 0.85
nmi_blockedFunction · 0.85
svm_getcapFunction · 0.85

Calls 1

svm_get_vmcb_ctrlFunction · 0.85

Tested by

no test coverage detected