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

Function vmxctx_setreg

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

Source from the content-addressed store, hash-verified

3263}
3264
3265static int
3266vmxctx_setreg(struct vmxctx *vmxctx, int reg, uint64_t val)
3267{
3268 register_t *regp;
3269
3270 if ((regp = vmxctx_regptr(vmxctx, reg)) != NULL) {
3271 *regp = val;
3272 return (0);
3273 } else
3274 return (EINVAL);
3275}
3276
3277static int
3278vmx_get_intr_shadow(struct vmx *vmx, int vcpu, int running, uint64_t *retval)

Callers 3

emulate_rdmsrFunction · 0.85
vmx_exit_processFunction · 0.85
vmx_setregFunction · 0.85

Calls 1

vmxctx_regptrFunction · 0.85

Tested by

no test coverage detected