Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines with new year.
[simgrid.git] / src / plugins / vm / VmHostExt.hpp
index 6795ba2..47e56ea 100644 (file)
@@ -1,10 +1,8 @@
-/* Copyright (c) 2004-2016. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2020. The SimGrid Team. All rights reserved.          */
 
 /* 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 <xbt/base.h>
-
 #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<simgrid::s4u::Host, VmHostExt> 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();
 };
 }
 }