X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e91f26820b30a2d87b4c723e92eaebbd2dc5ce15..22d91fbd6a4ef77ea6dd2e181a937344ca6fdb5f:/src/surf/HostImpl.cpp diff --git a/src/surf/HostImpl.cpp b/src/surf/HostImpl.cpp index 82b2f92995..d64628809e 100644 --- a/src/surf/HostImpl.cpp +++ b/src/surf/HostImpl.cpp @@ -159,11 +159,12 @@ s4u::VirtualMachine* HostImpl::create_vm(const std::string& name, s4u::VirtualMa auto* cpu = englobing_zone_->get_cpu_vm_model()->create_cpu(vm, speeds)->set_core_count(vm->get_vm_impl()->get_core_amount()); - if (get_iface()->get_pstate() != 0) - cpu->set_pstate(get_iface()->get_pstate()); - cpu->seal(); + if (get_iface()->get_pstate() != 0) { + cpu->set_pstate(get_iface()->get_pstate()); + } + /* Currently, a VM uses the network resource of its physical host */ vm->set_netpoint(get_iface()->get_netpoint());