msg_vm_t res = xbt_new0(s_msg_vm_t,1);
res->all_vms_hookup.prev = NULL;
res->host_vms_hookup.prev = NULL;
res->state = msg_vm_state_running;
res->location = location;
res->coreAmount = coreAmount;
msg_vm_t res = xbt_new0(s_msg_vm_t,1);
res->all_vms_hookup.prev = NULL;
res->host_vms_hookup.prev = NULL;
res->state = msg_vm_state_running;
res->location = location;
res->coreAmount = coreAmount;
res->processes = xbt_dynar_new(sizeof(msg_process_t),NULL);
xbt_swag_insert(res,msg_global->vms);
xbt_swag_insert(res,location->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_remove(vm,vm->location->vms);
xbt_swag_insert_at_tail(vm,destination->vms);
}
xbt_swag_remove(vm,vm->location->vms);
xbt_swag_insert_at_tail(vm,destination->vms);
XBT_DEBUG("suspend process %s of host %s",MSG_process_get_name(process),MSG_host_get_name(MSG_process_get_host(process)));
MSG_process_suspend(process);
}
XBT_DEBUG("suspend process %s of host %s",MSG_process_get_name(process),MSG_host_get_name(MSG_process_get_host(process)));
MSG_process_suspend(process);
}
XBT_DEBUG("resume process %s of host %s",MSG_process_get_name(process),MSG_host_get_name(MSG_process_get_host(process)));
MSG_process_resume(process);
}
XBT_DEBUG("resume process %s of host %s",MSG_process_get_name(process),MSG_host_get_name(MSG_process_get_host(process)));
MSG_process_resume(process);
}
process = xbt_dynar_get_as(vm->processes,0,msg_process_t);
MSG_process_kill(process);
}
process = xbt_dynar_get_as(vm->processes,0,msg_process_t);
MSG_process_kill(process);
}