X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4636ae2abfffeed6d3c21c565f9fdd6908826402..49ae6e61753b41f28accc4c0890097286d660e9f:/src/msg/msg_vm.c diff --git a/src/msg/msg_vm.c b/src/msg/msg_vm.c index 4539a93497..bc400f4918 100644 --- a/src/msg/msg_vm.c +++ b/src/msg/msg_vm.c @@ -391,10 +391,13 @@ static int migration_rx_fun(int argc, char *argv[]) } - /* deinstall the current affinity setting */ + /* deinstall the current affinity setting for the CPU */ simcall_vm_set_affinity(ms->vm, ms->src_pm, 0); + /* Update the vm location */ simcall_vm_migrate(ms->vm, ms->dst_pm); + + /* Resume the VM */ simcall_vm_resume(ms->vm); /* install the affinity setting of the VM on the destination pm */