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

Function vm_get_register

freebsd/amd64/vmm/vmm.c:1036–1047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1034}
1035
1036int
1037vm_get_register(struct vm *vm, int vcpu, int reg, uint64_t *retval)
1038{
1039
1040 if (vcpu < 0 || vcpu >= vm->maxcpus)
1041 return (EINVAL);
1042
1043 if (reg >= VM_REG_LAST)
1044 return (EINVAL);
1045
1046 return (vmmops_getreg(vm->cookie, vcpu, reg, retval));
1047}
1048
1049int
1050vm_set_register(struct vm *vm, int vcpuid, int reg, uint64_t val)

Callers 9

vie_read_registerFunction · 0.85
vie_read_byteregFunction · 0.85
vie_write_byteregFunction · 0.85
verify_glaFunction · 0.85
vm_get_register_setFunction · 0.85
vmmdev_ioctlFunction · 0.85
vm_restart_instructionFunction · 0.85
vm_inject_exceptionFunction · 0.85
x86_emulate_cpuidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected