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

Function vmxctx_getreg

freebsd/amd64/vmm/intel/vmx.c:3253–3263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3251}
3252
3253static int
3254vmxctx_getreg(struct vmxctx *vmxctx, int reg, uint64_t *retval)
3255{
3256 register_t *regp;
3257
3258 if ((regp = vmxctx_regptr(vmxctx, reg)) != NULL) {
3259 *retval = *regp;
3260 return (0);
3261 } else
3262 return (EINVAL);
3263}
3264
3265static int
3266vmxctx_setreg(struct vmxctx *vmxctx, int reg, uint64_t val)

Callers 1

vmx_getregFunction · 0.85

Calls 1

vmxctx_regptrFunction · 0.85

Tested by

no test coverage detected