1 /* Copyright (c) 2004-2018. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #include "src/surf/HostImpl.hpp"
8 #ifndef VM_HOST_INFO_HPP_
9 #define VM_HOST_INFO_HPP_
13 /** @brief Host extension for the VMs */
16 static simgrid::xbt::Extension<simgrid::s4u::Host, VmHostExt> EXTENSION_ID;
17 virtual ~VmHostExt() = default;
19 sg_size_t ramsize = 0; /* available ramsize (0= not taken into account) */
20 bool overcommit = true; /* Whether the host allows overcommiting more VM than the avail ramsize allows */
22 static void ensureVmExtInstalled();
27 #endif /* VM_HOST_INFO_HPP_ */