X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8fda7faea52d55ca15ff084a64029b2a63e2f720..6d1fc1c31cb2152b6d20742081118524dbb78d14:/src/plugins/vm/VmHostExt.hpp diff --git a/src/plugins/vm/VmHostExt.hpp b/src/plugins/vm/VmHostExt.hpp index 6795ba2f9b..ee657b03c1 100644 --- a/src/plugins/vm/VmHostExt.hpp +++ b/src/plugins/vm/VmHostExt.hpp @@ -3,8 +3,6 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include - #include "src/surf/HostImpl.hpp" #ifndef VM_HOST_INFO_HPP_ @@ -14,8 +12,14 @@ namespace simgrid { namespace vm { /** @brief Host extension for the VMs */ class VmHostExt { - virtual ~VmHostExt(); +public: static simgrid::xbt::Extension EXTENSION_ID; + virtual ~VmHostExt() = default; + + sg_size_t ramsize = 0; /* available ramsize (0= not taken into account) */ + bool overcommit = true; /* Whether the host allows overcommiting more VM than the avail ramsize allows */ + + static void ensureVmExtInstalled(); }; } }