X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/347f9a2ca55bffc88bf965952b9be3a15535e908..e47d2126ee520f8d88107618c42b84544e91a32c:/src/surf/vm_hl13.cpp diff --git a/src/surf/vm_hl13.cpp b/src/surf/vm_hl13.cpp index d31a30acc9..89cbef1622 100644 --- a/src/surf/vm_hl13.cpp +++ b/src/surf/vm_hl13.cpp @@ -186,7 +186,7 @@ VMHL13::VMHL13(VMModel *model, const char* name, xbt_dict_t props, sg_host_t hos // Roughly, create a vcpu resource by using the values of the sub_cpu one. CpuCas01 *sub_cpu = static_cast(sg_host_surfcpu(host_PM)); - p_cpu = surf_cpu_model_vm->createCpu(name, // name + p_cpu = surf_cpu_model_vm->createCpu(host, // the machine hosting the VM sub_cpu->getSpeedPeakList(), // host->power_peak, sub_cpu->getPState(), 1, // host->power_scale, @@ -194,7 +194,6 @@ VMHL13::VMHL13(VMModel *model, const char* name, xbt_dict_t props, sg_host_t hos 1, // host->core_amount, SURF_RESOURCE_ON, // host->initial_state, NULL); // host->state_trace, - p_cpu->plug(host); /* We create cpu_action corresponding to a VM process on the host operating system. */ /* FIXME: TODO: we have to periodically input GUESTOS_NOISE to the system? how ? */ @@ -329,15 +328,6 @@ void VMHL13::setAffinity(Cpu *cpu, unsigned long mask){ p_action->setAffinity(cpu, mask); } -/* - * A surf level object will be useless in the upper layer. Returning the - * dict_elm of the host. - **/ -sg_host_t VMHL13::getPm() -{ - return p_hostPM; -} - /* Adding a task to a VM updates the VCPU task on its physical machine. */ Action *VMHL13::execute(double size) {