| 1034 | } |
| 1035 | |
| 1036 | int |
| 1037 | vm_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 | |
| 1049 | int |
| 1050 | vm_set_register(struct vm *vm, int vcpuid, int reg, uint64_t val) |
no outgoing calls
no test coverage detected