| 1246 | } |
| 1247 | |
| 1248 | static void |
| 1249 | vcpu_require_state(struct vm *vm, int vcpuid, enum vcpu_state newstate) |
| 1250 | { |
| 1251 | int error; |
| 1252 | |
| 1253 | if ((error = vcpu_set_state(vm, vcpuid, newstate, false)) != 0) |
| 1254 | panic("Error %d setting state to %d\n", error, newstate); |
| 1255 | } |
| 1256 | |
| 1257 | static void |
| 1258 | vcpu_require_state_locked(struct vm *vm, int vcpuid, enum vcpu_state newstate) |
no test coverage detected