Lines Matching defs:newstate
1373 vcpu_set_state_locked(struct vcpu *vcpu, enum vcpu_state newstate,
1416 error = (newstate != VCPU_FROZEN);
1419 error = (newstate == VCPU_FROZEN);
1430 vcpu_state2str(vcpu->state), vcpu_state2str(newstate));
1432 vcpu->state = newstate;
1433 if (newstate == VCPU_RUNNING)
1438 if (newstate == VCPU_IDLE)
1445 vcpu_require_state(struct vcpu *vcpu, enum vcpu_state newstate)
1449 if ((error = vcpu_set_state(vcpu, newstate, false)) != 0)
1450 panic("Error %d setting state to %d\n", error, newstate);
1454 vcpu_require_state_locked(struct vcpu *vcpu, enum vcpu_state newstate)
1458 if ((error = vcpu_set_state_locked(vcpu, newstate, false)) != 0)
1459 panic("Error %d setting state to %d", error, newstate);
2483 vcpu_set_state(struct vcpu *vcpu, enum vcpu_state newstate, bool from_idle)
2488 error = vcpu_set_state_locked(vcpu, newstate, from_idle);