A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'v3_9_x'
[simgrid.git]
/
src
/
msg
/
msg_vm.c
diff --git
a/src/msg/msg_vm.c
b/src/msg/msg_vm.c
index
426bbb7
..
c025372
100644
(file)
--- 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);
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);
#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_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);
#ifdef HAVE_TRACING
TRACE_msg_vm_change_host(vm,vm->location,destination);