From 4e5def63badcab36ae4c7b58645aa0a65ce4e0d0 Mon Sep 17 00:00:00 2001 From: Adrien Lebre Date: Wed, 13 May 2015 17:00:21 +0200 Subject: [PATCH 1/1] Compilation is at least ok - Ad(rien) --- src/simix/simcalls.in | 4 +++- src/simix/smx_vm.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/simix/simcalls.in b/src/simix/simcalls.in index d3986bb36e..a707338f64 100644 --- a/src/simix/simcalls.in +++ b/src/simix/simcalls.in @@ -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) diff --git a/src/simix/smx_vm.c b/src/simix/smx_vm.c index baf05c268b..213c1651f5 100644 --- a/src/simix/smx_vm.c +++ b/src/simix/smx_vm.c @@ -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); } /** -- 2.20.1