xbt_dict_t MSG_vm_get_properties(msg_vm_t vm)
{
xbt_assert((vm != NULL), "Invalid parameters (vm is NULL)");
-
- return (simcall_host_get_properties(vm));
+ return vm->getProperties();
}
/** \ingroup m_host_management
params.mig_speed = (double)mig_netspeed * 1024 * 1024; // mig_speed
//XBT_INFO("dp rate %f migspeed : %f intensity mem : %d, updatespeed %f, hostspeed %f",params.dp_rate, params.mig_speed, dp_intensity, update_speed, host_speed);
- simcall_host_set_params(vm, ¶ms);
+ vm->setParams(¶ms);
return vm;
}
{
/* make sure the VM of the same name does not exit */
{
- simgrid::Host* ind_host_tmp =
- (simgrid::Host*) xbt_dict_get_or_null(host_list, name);
+ simgrid::s4u::Host* ind_host_tmp =
+ (simgrid::s4u::Host*) xbt_dict_get_or_null(host_list, name);
if (ind_host_tmp != nullptr && sg_host_simix(ind_host_tmp) != nullptr) {
XBT_ERROR("host %s already exits", name);
return nullptr;
/* Then, destroy the VM object */
simcall_vm_destroy(vm);
- __MSG_host_destroy(vm);
-
TRACE_msg_vm_end(vm);
}
struct migration_session *ms = (migration_session *) MSG_process_get_data(MSG_process_self());
s_vm_params_t params;
- simcall_host_get_params(ms->vm, ¶ms);
+ ms->vm->getParams(¶ms);
int need_exit = 0;
(migration_session *) MSG_process_get_data(MSG_process_self());
s_vm_params_t params;
- simcall_host_get_params(ms->vm, ¶ms);
+ ms->vm->getParams(¶ms);
const sg_size_t ramsize = params.ramsize;
const sg_size_t devsize = params.devsize;
const int skip_stage1 = params.skip_stage1;