Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 31 May 2017 08:50:47 +0000 (10:50 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 31 May 2017 08:50:47 +0000 (10:50 +0200)
src/plugins/vm/s4u_VirtualMachine.cpp
src/surf/HostImpl.cpp

index 261f63a..3400a3b 100644 (file)
@@ -13,11 +13,11 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_vm, "S4U virtual machines");
 namespace simgrid {
 namespace s4u {
 
-VirtualMachine::VirtualMachine(const char* name, s4u::Host* pm) : Host(name)
+VirtualMachine::VirtualMachine(const char* name, s4u::Host* pm)
+    : Host(name), pimpl_vm_(new vm::VirtualMachineImpl(this, pm))
 {
   XBT_DEBUG("Create VM %s", name);
 
-  pimpl_vm_ = new vm::VirtualMachineImpl(this, pm);
   /* Currently, a VM uses the network resource of its physical host */
   pimpl_netpoint = pm->pimpl_netpoint;
   // Create a VCPU for this VM
index b8ca1e8..5c9302a 100644 (file)
@@ -38,7 +38,6 @@ void HostModel::adjustWeightOfDummyCpuActions()
       /* some tasks exist on this VM */
       XBT_DEBUG("set the weight of the dummy CPU action on PM to 1");
 
-      /* FIXME: we should use lmm_update_variable_weight() ? */
       /* FIXME: If we assign 1.05 and 0.05, the system makes apparently wrong values. */
       ws_vm->pimpl_vm_->action_->setPriority(1);