+void SIMIX_host_execution_cancel(smx_action_t action)
+{
+ XBT_DEBUG("Cancel action %p", action);
+
+ if (action->execution.surf_exec)
+ surf_workstation_model->action_cancel(action->execution.surf_exec);
+}
+
+double SIMIX_host_execution_get_remains(smx_action_t action)
+{
+ double result = 0.0;
+
+ if (action->state == SIMIX_RUNNING)
+ result = surf_workstation_model->get_remains(action->execution.surf_exec);
+
+ return result;
+}
+
+e_smx_state_t SIMIX_host_execution_get_state(smx_action_t action)
+{
+ return action->state;
+}
+
+void SIMIX_host_execution_set_priority(smx_action_t action, double priority)
+{
+ if(action->execution.surf_exec)
+ surf_workstation_model->set_priority(action->execution.surf_exec, priority);
+}
+
+void SIMIX_pre_host_execution_wait(smx_simcall_t simcall)
+{
+ smx_action_t action = simcall->host_execution_wait.execution;
+
+ XBT_DEBUG("Wait for execution of action %p, state %d", action, action->state);
+
+ /* Associate this simcall to the action */
+ xbt_fifo_push(action->simcalls, simcall);
+ simcall->issuer->waiting_action = action;
+
+ /* set surf's action */
+ if (MC_IS_ENABLED) {
+ action->state = SIMIX_DONE;
+ SIMIX_execution_finish(action);
+ return;
+ }
+
+ /* If the action is already finished then perform the error handling */
+ if (action->state != SIMIX_RUNNING)
+ SIMIX_execution_finish(action);
+}
+
+void SIMIX_host_execution_suspend(smx_action_t action)
+{
+ if(action->execution.surf_exec)
+ surf_workstation_model->suspend(action->execution.surf_exec);
+}
+
+void SIMIX_host_execution_resume(smx_action_t action)
+{
+ if(action->execution.surf_exec)
+ surf_workstation_model->suspend(action->execution.surf_exec);
+}
+
+void SIMIX_execution_finish(smx_action_t action)