X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3d42ca4a7357664a08b737ac461f53ee2933d4c2..163f8696544cfc2c11a545b9ed06011903780031:/src/plugins/vm/s4u_VirtualMachine.cpp diff --git a/src/plugins/vm/s4u_VirtualMachine.cpp b/src/plugins/vm/s4u_VirtualMachine.cpp index b727465c9f..9e892c6e78 100644 --- a/src/plugins/vm/s4u_VirtualMachine.cpp +++ b/src/plugins/vm/s4u_VirtualMachine.cpp @@ -5,6 +5,7 @@ #include "simgrid/s4u/Actor.hpp" #include "simgrid/vm.h" +#include "src/include/surf/surf.hpp" #include "src/plugins/vm/VirtualMachineImpl.hpp" #include "src/plugins/vm/VmHostExt.hpp" #include "src/simix/smx_host_private.hpp" @@ -42,9 +43,6 @@ VirtualMachine::VirtualMachine(const char* name, s4u::Host* physical_host, int c surf_cpu_model_vm->create_cpu(this, &speeds, physical_host->get_core_count()); if (physical_host->get_pstate() != 0) set_pstate(physical_host->get_pstate()); - - /* Make a process container */ - extension_set(new simgrid::simix::Host()); } VirtualMachine::~VirtualMachine() @@ -53,14 +51,6 @@ VirtualMachine::~VirtualMachine() XBT_DEBUG("destroy %s", get_cname()); - /* FIXME: this is really strange that everything fails if the next line is removed. - * This is as if we shared these data with the PM, which definitely should not be the case... - * - * We need to test that suspending a VM does not suspends the processes running on its PM, for example. - * Or we need to simplify this code enough to make it actually readable (but this sounds harder than testing) - */ - extension_set(nullptr); - /* Don't free these things twice: they are the ones of my physical host */ pimpl_netpoint = nullptr; }