Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert the last vm simcall into s4u code
[simgrid.git] / src / plugins / vm / VirtualMachineImpl.hpp
index 6f33984..2c6e95e 100644 (file)
@@ -63,19 +63,22 @@ public:
   ~VirtualMachineImpl();
 
   /** @brief Suspend the VM */
-  virtual void suspend();
+  virtual void suspend(smx_actor_t issuer);
 
   /** @brief Resume the VM */
   virtual void resume();
 
-  /** @brief Save the VM (Not yet implemented) */
-  virtual void save();
+  /** @brief Save (suspend+store on disk) the VM */
+  virtual void save(smx_actor_t issuer);
 
-  /** @brief Restore the VM (Not yet implemented) */
+  /** @brief Restore (read from disk+resume) the VM */
   virtual void restore();
 
-  /** @brief Migrate the VM to the destination host */
-  virtual void migrate(s4u::Host* dest);
+  /** @brief Shutdown the VM */
+  virtual void shutdown(smx_actor_t issuer);
+
+  /** @brief Change the physical host on which the given VM is running */
+  virtual void setPm(s4u::Host* dest);
 
   /** @brief Get the physical machine hosting the VM */
   s4u::Host* getPm();
@@ -129,4 +132,6 @@ public:
 }
 }
 
+XBT_PUBLIC_DATA(simgrid::vm::VMModel*) surf_vm_model;
+
 #endif /* VM_INTERFACE_HPP_ */