Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert the last vm simcall into s4u code
[simgrid.git] / src / plugins / vm / VmHostExt.hpp
index 6795ba2..46a26c8 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();
 };
 }
 }