X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c8997e63383c66e43ffde29d356fdddb65d65d81..05d190ed39b43f561714b3a065dbb6dcab48b364:/src/simix/smx_vm.cpp diff --git a/src/simix/smx_vm.cpp b/src/simix/smx_vm.cpp index 93e4697180..ae5fdbd923 100644 --- a/src/simix/smx_vm.cpp +++ b/src/simix/smx_vm.cpp @@ -7,7 +7,7 @@ #include "smx_private.h" #include "mc/mc.h" #include "src/surf/virtual_machine.hpp" -#include "src/surf/HostImplem.hpp" +#include "src/surf/HostImpl.hpp" //If you need to log some stuffs, just uncomment these two lines and uses XBT_DEBUG for instance XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_vm, simix, "Logging specific to SIMIX (vms)"); @@ -37,7 +37,7 @@ sg_host_t SIMIX_vm_create(const char *name, sg_host_t ind_phys_host) static long host_get_ramsize(sg_host_t vm, int *overcommit) { s_vm_params_t params; - vm->extension()->getParams(¶ms); + vm->extension()->getParams(¶ms); if (overcommit) *overcommit = params.overcommit; @@ -60,12 +60,12 @@ static int __can_be_started(sg_host_t vm) } if (pm_overcommit) { - XBT_INFO("%s allows memory overcommit.", sg_host_get_name(pm)); + XBT_VERB("%s allows memory overcommit.", sg_host_get_name(pm)); return 1; } long total_ramsize_of_vms = 0; - xbt_dynar_t dyn_vms = pm->extension()->getVms(); + xbt_dynar_t dyn_vms = pm->extension()->getVms(); { unsigned int cursor = 0; sg_host_t another_vm; @@ -90,7 +90,7 @@ void SIMIX_vm_start(sg_host_t ind_vm) { if (__can_be_started(ind_vm)) static_cast( - ind_vm->extension() + ind_vm->extension() )->setState(SURF_VM_STATE_RUNNING); else THROWF(vm_error, 0, "The VM %s cannot be started", sg_host_get_name(ind_vm)); @@ -100,7 +100,7 @@ void SIMIX_vm_start(sg_host_t ind_vm) e_surf_vm_state_t SIMIX_vm_get_state(sg_host_t ind_vm) { return static_cast( - ind_vm->extension() + ind_vm->extension() )->getState(); } @@ -345,7 +345,7 @@ void SIMIX_vm_shutdown(sg_host_t ind_vm, smx_process_t issuer) /* FIXME: we may have to do something at the surf layer, e.g., vcpu action */ static_cast( - ind_vm->extension() + ind_vm->extension() )->setState(SURF_VM_STATE_CREATED); }