-void surf_vm_destroy(sg_host_t resource){
- /* We deregister objects from host_lib, without invoking the freeing callback
- * of each level.
- *
- * Do not call xbt_lib_remove() here. It deletes all levels of the key,
- * including MSG_HOST_LEVEL and others. We should unregister only what we know.
- */
- sg_host_surfcpu_destroy(resource);
- sg_host_edge_destroy(resource,1);
- resource->set_facet<simgrid::surf::Host>(nullptr);
-
- /* TODO: comment out when VM storage is implemented. */
- // host->set_facet(SURF_STORAGE_LEVEL, nullptr);