#include <simgrid/s4u/host.hpp>
#include <xbt/base.h>
-namespace simgrid {
+typedef enum {
+ SURF_VM_STATE_CREATED, /**< created, but not yet started */
+ SURF_VM_STATE_RUNNING,
+ SURF_VM_STATE_SUSPENDED, /**< Suspend/resume does not involve disk I/O, so we assume there is no transition states. */
+
+ SURF_VM_STATE_SAVING, /**< Save/restore involves disk I/O, so there should be transition states. */
+ SURF_VM_STATE_SAVED,
+ SURF_VM_STATE_RESTORING,
+} e_surf_vm_state_t;
+namespace simgrid {
namespace s4u {
/** @ingroup s4u_api
XBT_PUBLIC(int) find_model_description(s_surf_model_description_t * table, const char *name);
XBT_PUBLIC(void) model_help(const char *category, s_surf_model_description_t * table);
-/** @ingroup SURF_vm_interface */
-/* FIXME: Where should the VM state be defined? */
-typedef enum {
- SURF_VM_STATE_CREATED, /**< created, but not yet started */
- SURF_VM_STATE_RUNNING,
- SURF_VM_STATE_SUSPENDED, /**< Suspend/resume does not involve disk I/O, so we assume there is no transition states. */
-
- SURF_VM_STATE_SAVING, /**< Save/restore involves disk I/O, so there should be transition states. */
- SURF_VM_STATE_SAVED,
- SURF_VM_STATE_RESTORING,
-} e_surf_vm_state_t;
-
/***************************/
/* Generic model object */
/***************************/
#include "simgrid/simix.h"
#include "popping_private.h"
+#include "simgrid/s4u/VirtualMachine.hpp"
#include "src/kernel/activity/SynchroExec.hpp"
/** @brief Host datatype from SIMIX POV */