]> AND Public Git Repository - simgrid.git/blobdiff - src/plugins/vm/VmHostExt.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move VM into their namespace, and greatly reduce the amount of sg_host_get_name ...
[simgrid.git] / src / plugins / vm / VmHostExt.hpp
index 6795ba2f9ba03b8565cba83e2ecab650e9553a45..46a26c8ff71f0718a8cbcd252e8790fc0cc71884 100644 (file)
@@ -14,8 +14,14 @@ namespace simgrid {
 namespace vm {
 /** @brief Host extension for the VMs */
 class VmHostExt {
-  virtual ~VmHostExt();
+public:
   static simgrid::xbt::Extension<simgrid::s4u::Host, VmHostExt> EXTENSION_ID;
+  virtual ~VmHostExt();
+
+  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();
 };
 }
 }