Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
The VirtualMachineImpl is stored in VirtualMachine->pimpl_vm_, not in Host->pimpl_
[simgrid.git] / src / plugins / vm / VirtualMachineImpl.hpp
index 0a25e54..353f9a9 100644 (file)
@@ -57,7 +57,7 @@ extern XBT_PRIVATE simgrid::xbt::signal<void(simgrid::surf::VirtualMachineImpl*)
  */
 class VirtualMachineImpl : public HostImpl {
 public:
-  explicit VirtualMachineImpl(s4u::Host* piface, s4u::Host* host);
+  explicit VirtualMachineImpl(s4u::VirtualMachine* piface, s4u::Host* host);
   ~VirtualMachineImpl();
 
   /** @brief Suspend the VM */
@@ -78,13 +78,15 @@ public:
   /** @brief Get the physical machine hosting the VM */
   s4u::Host* getPm();
 
+  sg_size_t getRamsize();
+
   virtual void setBound(double bound);
 
   void getParams(vm_params_t params);
   void setParams(vm_params_t params);
 
   /* The vm object of the lower layer */
-  CpuAction* action_ = nullptr;
+  Action* action_ = nullptr;
 
   /* Dirty pages stuff */
   int dp_enabled                     = 0;
@@ -97,7 +99,7 @@ protected:
 public:
   e_surf_vm_state_t getState();
   void setState(e_surf_vm_state_t state);
-  static std::deque<VirtualMachineImpl*> allVms_;
+  static std::deque<s4u::VirtualMachine*> allVms_;
 
   bool isMigrating = false;