X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/45c3f1cfee86fb48c96d53f8267f99b6db6e3d7a..9417357ad97284aa163a86b0ab60058641fc0064:/src/simix/smx_vm.c diff --git a/src/simix/smx_vm.c b/src/simix/smx_vm.c index 091e92ac80..d91b857b7d 100644 --- a/src/simix/smx_vm.c +++ b/src/simix/smx_vm.c @@ -121,17 +121,16 @@ int SIMIX_pre_vm_get_state(smx_simcall_t simcall, smx_host_t ind_vm) /** - * \brief Function to migrate a SIMIX VM host. + * \brief Function to migrate a SIMIX VM host. * * \param host the vm host to migrate (a smx_host_t) */ void SIMIX_vm_migrate(smx_host_t ind_vm, smx_host_t ind_dst_pm) { /* precopy migration makes the VM temporally paused */ - e_surf_vm_state_t state = SIMIX_vm_get_state(ind_vm); - xbt_assert(state == SURF_VM_STATE_SUSPENDED); + xbt_assert(SIMIX_vm_get_state(ind_vm) == SURF_VM_STATE_SUSPENDED); - /* jump to vm_ws_migrate(). this will update the vm location. */ + /* jump to vm_ws_xigrate(). this will update the vm location. */ surf_vm_workstation_migrate(ind_vm, ind_dst_pm); } @@ -199,7 +198,7 @@ void SIMIX_pre_vm_set_affinity(smx_simcall_t simcall, smx_host_t ind_vm, smx_hos /** - * \brief Function to suspend a SIMIX VM host. This function stops the exection of the + * \brief Function to suspend a SIMIX VM host. This function stops the execution of the * VM. All the processes on this VM will pause. The state of the VM is * preserved on memory. We can later resume it again. * @@ -241,7 +240,7 @@ void SIMIX_pre_vm_suspend(smx_simcall_t simcall, smx_host_t ind_vm) /** * \brief Function to resume a SIMIX VM host. This function restart the execution of the - * VM. All the processes on this VM will run again. + * VM. All the processes on this VM will run again. * * \param host the vm host to resume (a smx_host_t) */ @@ -305,7 +304,7 @@ void SIMIX_pre_vm_save(smx_simcall_t simcall, smx_host_t ind_vm) /** * \brief Function to restore a SIMIX VM host. This function restart the execution of the - * VM. All the processes on this VM will run again. + * VM. All the processes on this VM will run again. * * \param host the vm host to restore (a smx_host_t) */