X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/bd02d8d308feab888032539a30702bf2fb4b445f..a3f6c5e832f9966433370562ef59fc4670038c94:/src/simix/smx_vm.cpp?ds=sidebyside diff --git a/src/simix/smx_vm.cpp b/src/simix/smx_vm.cpp index dcf61aac33..de015591a5 100644 --- a/src/simix/smx_vm.cpp +++ b/src/simix/smx_vm.cpp @@ -110,8 +110,7 @@ void SIMIX_vm_migratefrom_resumeto(sg_host_t vm, sg_host_t src_pm, sg_host_t dst SIMIX_vm_migrate(vm, dst_pm); /* Resume the VM */ - smx_actor_t self = SIMIX_process_self(); - SIMIX_vm_resume(vm, self); + SIMIX_vm_resume(vm); } /** @@ -156,7 +155,7 @@ void simcall_HANDLER_vm_suspend(smx_simcall_t simcall, sg_host_t vm) * * @param vm the vm host to resume (a sg_host_t) */ -void SIMIX_vm_resume(sg_host_t vm, smx_actor_t issuer) +void SIMIX_vm_resume(sg_host_t vm) { if (SIMIX_vm_get_state(vm) != SURF_VM_STATE_SUSPENDED) THROWF(vm_error, 0, "VM(%s) was not suspended", vm->name().c_str()); @@ -174,12 +173,6 @@ void SIMIX_vm_resume(sg_host_t vm, smx_actor_t issuer) } } -void simcall_HANDLER_vm_resume(smx_simcall_t simcall, sg_host_t vm) -{ - SIMIX_vm_resume(vm, simcall->issuer); -} - - /** * @brief Function to save a SIMIX VM host. * This function is the same as vm_suspend, but the state of the VM is saved to the disk, and not preserved on memory. @@ -236,12 +229,6 @@ void SIMIX_vm_restore(sg_host_t vm) } } -void simcall_HANDLER_vm_restore(smx_simcall_t simcall, sg_host_t vm) -{ - SIMIX_vm_restore(vm); -} - - /** * @brief Function to shutdown a SIMIX VM host. This function powers off the * VM. All the processes on this VM will be killed. But, the state of the VM is