| 2228 | } |
| 2229 | |
| 2230 | int |
| 2231 | vm_get_capability(struct vm *vm, int vcpu, int type, int *retval) |
| 2232 | { |
| 2233 | if (vcpu < 0 || vcpu >= vm->maxcpus) |
| 2234 | return (EINVAL); |
| 2235 | |
| 2236 | if (type < 0 || type >= VM_CAP_MAX) |
| 2237 | return (EINVAL); |
| 2238 | |
| 2239 | return (vmmops_getcap(vm->cookie, vcpu, type, retval)); |
| 2240 | } |
| 2241 | |
| 2242 | int |
| 2243 | vm_set_capability(struct vm *vm, int vcpu, int type, int val) |
no outgoing calls
no test coverage detected