Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Compilation is at least ok - Ad(rien)
authorAdrien Lebre <alebre@dhcp-2-16.rech172-28.emn.fr>
Wed, 13 May 2015 15:00:21 +0000 (17:00 +0200)
committerAdrien Lebre <alebre@dhcp-2-16.rech172-28.emn.fr>
Wed, 13 May 2015 15:00:21 +0000 (17:00 +0200)
src/simix/simcalls.in
src/simix/smx_vm.c

index d3986bb..a707338 100644 (file)
@@ -39,7 +39,9 @@
 # Please note that in addition to completing this file with your new simcall,
 # you should complete the libsmx.c file by adding the corresponding function
 # (aka. stub). Anyway, if you omit to do it, the invocation of ./simcalls.py will notify you ;)
-
+# Finally, if you want to remove an handler, it is important to remove although
+# the corresponding code (simcall_HANDLER_name_of_simcall(xxx) (note that comment the code 
+# is not sufficient, the python script does not check whether the code is commented or not).
 
 Func - host_get_by_name (void*, smx_host_t) (name, const char*)
 Func - host_get_name (const char*) (host, void*, smx_host_t)
index baf05c2..213c165 100644 (file)
@@ -138,7 +138,8 @@ void SIMIX_vm_migratefrom_resumeto(smx_host_t vm, smx_host_t src_pm, smx_host_t
   SIMIX_vm_migrate(vm, dst_pm);
  
   /* Resume the VM */
-  SIMIX_vm_resume(vm);
+  smx_process_t self = SIMIX_process_self(); 
+  SIMIX_vm_resume(vm, self->simcall.issuer);
 } 
 
 /**