+ 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
+ surf::CpuCas01* sub_cpu = dynamic_cast<surf::CpuCas01*>(pm->pimpl_cpu);
+
+ pimpl_cpu = surf_cpu_model_vm->createCpu(this, sub_cpu->getSpeedPeakList(), 1 /*cores*/);
+ if (sub_cpu->getPState() != 0)
+ pimpl_cpu->setPState(sub_cpu->getPState());
+
+ /* Make a process container */
+ extension_set<simgrid::simix::Host>(new simgrid::simix::Host());
+
+ if (TRACE_msg_vm_is_enabled()) {
+ container_t host_container = PJ_container_get(pm->cname());
+ PJ_container_new(name, INSTR_MSG_VM, host_container);
+ }