X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0c13871d73e933c1847faf8debea7b7745a3ff44..42e69c5d43675587aae0bb367b8bf0746f6be13a:/src/msg/msg_vm.c diff --git a/src/msg/msg_vm.c b/src/msg/msg_vm.c index 426bbb753f..c025372f06 100644 --- a/src/msg/msg_vm.c +++ b/src/msg/msg_vm.c @@ -28,7 +28,7 @@ msg_vm_t MSG_vm_start(msg_host_t location, const char *name, int coreAmount) { res->processes = xbt_dynar_new(sizeof(msg_process_t),NULL); xbt_swag_insert(res,msg_global->vms); - xbt_swag_insert(res,location->vms); + xbt_swag_insert(res, MSG_host_priv(location)->vms); #ifdef HAVE_TRACING TRACE_msg_vm_create(name, location); @@ -111,8 +111,8 @@ void MSG_vm_migrate(msg_vm_t vm, msg_host_t destination) { xbt_dynar_foreach(vm->processes,cpt,process) { MSG_process_migrate(process,destination); } - xbt_swag_remove(vm,vm->location->vms); - xbt_swag_insert_at_tail(vm,destination->vms); + xbt_swag_remove(vm, MSG_host_priv(vm->location)->vms); + xbt_swag_insert_at_tail(vm, MSG_host_priv(destination)->vms); #ifdef HAVE_TRACING TRACE_msg_vm_change_host(vm,vm->location,destination);