Lines Matching refs:run_state
133 enum vcpu_run_state run_state; /* (i) vcpu init/sipi/run state */ member
412 vcpu->run_state = VRS_HALT; in vcpu_init()
1340 *state = vcpu->run_state; in vm_get_run_state()
1362 vcpu->run_state = state; in vm_set_run_state()
1892 if ((vcpu->run_state & VRS_PEND_INIT) != 0) { in vm_handle_run_state()
1897 vcpu->run_state &= ~(VRS_RUN | VRS_PEND_INIT); in vm_handle_run_state()
1898 vcpu->run_state |= VRS_INIT; in vm_handle_run_state()
1901 if ((vcpu->run_state & (VRS_INIT | VRS_RUN | VRS_PEND_SIPI)) == in vm_handle_run_state()
1909 vcpu->run_state &= ~VRS_PEND_SIPI; in vm_handle_run_state()
1910 vcpu->run_state |= VRS_RUN; in vm_handle_run_state()
1917 if ((vcpu->run_state & VRS_RUN) != 0) { in vm_handle_run_state()
2982 vcpu->run_state |= VRS_PEND_INIT; in vm_inject_init()
2989 vcpu->run_state &= ~VRS_PEND_SIPI; in vm_inject_init()
3006 vcpu->run_state |= VRS_PEND_SIPI; in vm_inject_sipi()
3009 if ((vcpu->run_state & (VRS_INIT | VRS_RUN)) == VRS_INIT) { in vm_inject_sipi()
3025 return ((vcpu->run_state & (VRS_RUN | VRS_PEND_INIT)) != VRS_RUN); in vcpu_run_state_pending()