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

Function vmcb_setany

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

Source from the content-addressed store, hash-verified

479}
480
481int
482vmcb_setany(struct svm_softc *sc, int vcpu, int ident, uint64_t val)
483{
484 int error = 0;
485
486 if (vcpu < 0 || vcpu >= VM_MAXCPU) {
487 error = EINVAL;
488 goto err;
489 }
490
491 if (ident >= VM_REG_LAST) {
492 error = EINVAL;
493 goto err;
494 }
495
496 error = vmcb_write(sc, vcpu, ident, val);
497
498err:
499 return (error);
500}
501
502int
503vmcb_snapshot_desc(void *arg, int vcpu, int reg, struct vm_snapshot_meta *meta)

Callers 1

vmcb_snapshot_anyFunction · 0.85

Calls 1

vmcb_writeFunction · 0.85

Tested by

no test coverage detected