X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7f4e5b2ed2874cf5ab13b7fbe0cebff788cb5019..9bc2f7734295810a24f98d65169f06705e3ea951:/src/msg/msg_vm.cpp diff --git a/src/msg/msg_vm.cpp b/src/msg/msg_vm.cpp index e2bd5085cb..3cf519b9e4 100644 --- a/src/msg/msg_vm.cpp +++ b/src/msg/msg_vm.cpp @@ -11,22 +11,22 @@ #include +#include "src/instr/instr_private.h" +#include "src/msg/msg_private.h" #include "src/plugins/vm/VirtualMachineImpl.hpp" #include "src/plugins/vm/VmHostExt.hpp" -#include "src/simix/ActorImpl.hpp" -#include -#include -#include "msg_private.h" -#include "xbt/sysdep.h" -#include "xbt/log.h" #include "simgrid/host.h" +#include "simgrid/simix.hpp" -#include "src/simix/smx_host_private.h" /* don't ask me why the VM functions are in there (FIXME:KILLME) */ +typedef struct dirty_page { + double prev_clock; + double prev_remaining; + msg_task_t task; +} s_dirty_page, *dirty_page_t; XBT_LOG_NEW_DEFAULT_SUBCATEGORY(msg_vm, msg, "Cloud-oriented parts of the MSG API"); - /* **** ******** GENERAL ********* **** */ /** \ingroup m_vm_management @@ -117,8 +117,8 @@ msg_vm_t MSG_vm_create(msg_host_t pm, const char* name, int ramsize, int mig_net params.dp_cap = params.ramsize * 0.9; // assume working set memory is 90% of ramsize 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); + XBT_DEBUG("dp rate %f migspeed : %f intensity mem : %d, updatespeed %f, hostspeed %f", params.dp_rate, + params.mig_speed, dp_intensity, update_speed, host_speed); static_cast(vm)->setParameters(¶ms); return vm;