| 111 | } |
| 112 | |
| 113 | static int |
| 114 | vcpu_lock_one(struct vmmdev_softc *sc, int vcpu) |
| 115 | { |
| 116 | int error; |
| 117 | |
| 118 | if (vcpu < 0 || vcpu >= vm_get_maxcpus(sc->vm)) |
| 119 | return (EINVAL); |
| 120 | |
| 121 | error = vcpu_set_state(sc->vm, vcpu, VCPU_FROZEN, true); |
| 122 | return (error); |
| 123 | } |
| 124 | |
| 125 | static void |
| 126 | vcpu_unlock_one(struct vmmdev_softc *sc, int vcpu) |
no test coverage detected