X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/783b33766eccfc78e3b205d896323169ec42e7c1..efacb3792fdfe6bc849af2ce1a2e426c092601fb:/src/simix/smx_vm.cpp diff --git a/src/simix/smx_vm.cpp b/src/simix/smx_vm.cpp index ba05d17e6a..0a4f5a5e36 100644 --- a/src/simix/smx_vm.cpp +++ b/src/simix/smx_vm.cpp @@ -8,28 +8,7 @@ #include "src/surf/virtual_machine.hpp" #include "src/surf/HostImpl.hpp" -XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_vm, simix, "Logging specific to SIMIX (vms)"); - -/* **** create a VM **** */ - -/** - * @brief Internal function to create a SIMIX host. - * @param name name of the host to create - * @param data some user data (may be nullptr) - */ -sg_host_t SIMIX_vm_create(const char *name, sg_host_t ind_phys_host) -{ - /* Create surf associated resource */ - surf_vm_model_create(name, ind_phys_host); - sg_host_t host = sg_host_by_name(name); - SIMIX_host_create(host); - - /* We will be able to register the VM to its physical host, so that we can promptly - * retrieve the list VMs on the physical host. */ - - return host; -} - +XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_vm, simix, "Logging specific to SIMIX Virtual Machines"); /* works for VMs and PMs */ static long host_get_ramsize(sg_host_t vm, int *overcommit)