X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d22f65624615098a556403243579dd7c4ceb69dd..4aea7e49e47243417f094ee62b8e43de066e56d2:/src/plugins/vm/VirtualMachineImpl.hpp diff --git a/src/plugins/vm/VirtualMachineImpl.hpp b/src/plugins/vm/VirtualMachineImpl.hpp index 6f3398476a..2c6e95e9b5 100644 --- a/src/plugins/vm/VirtualMachineImpl.hpp +++ b/src/plugins/vm/VirtualMachineImpl.hpp @@ -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_ */