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

Function vmcb_getany

freebsd/amd64/vmm/amd/vmcb.c:460–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458
459#ifdef BHYVE_SNAPSHOT
460int
461vmcb_getany(struct svm_softc *sc, int vcpu, int ident, uint64_t *val)
462{
463 int error = 0;
464
465 if (vcpu < 0 || vcpu >= VM_MAXCPU) {
466 error = EINVAL;
467 goto err;
468 }
469
470 if (ident >= VM_REG_LAST) {
471 error = EINVAL;
472 goto err;
473 }
474
475 error = vmcb_read(sc, vcpu, ident, val);
476
477err:
478 return (error);
479}
480
481int
482vmcb_setany(struct svm_softc *sc, int vcpu, int ident, uint64_t val)

Callers 1

vmcb_snapshot_anyFunction · 0.85

Calls 1

vmcb_readFunction · 0.85

Tested by

no test coverage detected