Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
minor changes - Adrien /Takahiro
authoralebre <adrien.lebre@inria.fr>
Thu, 21 Feb 2013 14:09:44 +0000 (15:09 +0100)
committeralebre <adrien.lebre@inria.fr>
Thu, 21 Feb 2013 14:09:44 +0000 (15:09 +0100)
src/surf/vm_workstation_private.h [new file with mode: 0644]

diff --git a/src/surf/vm_workstation_private.h b/src/surf/vm_workstation_private.h
new file mode 100644 (file)
index 0000000..f7a80e7
--- /dev/null
@@ -0,0 +1,35 @@
+/* Copyright (c) 2009, 2013. 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. */
+
+#ifndef VM_WS_PRIVATE_H_
+#define VM_WS_PRIVATE_H_
+
+#define GUESTOS_NOISE 100 // This value corresponds to the cost of the global action associated to the VM
+                          // It corresponds to the cost of a VM running no tasks.
+
+#include "workstation_private.h"
+
+/* NOTE:
+ * The workstation_VM2013 struct includes the workstation_CLM03 struct in
+ * its first member. The workstation_VM2013_t struct inherites all
+ * characteristics of the workstation_CLM03 struct. So, we can treat a
+ * workstation_VM2013 object as a workstation_CLM03 if necessary.
+ **/
+typedef struct workstation_VM2013 {
+  s_workstation_CLM03_t ws;    /* a VM is a ''v''host */
+
+  /* The workstation object of the lower layer */
+  workstation_CLM03_t sub_ws;  // Pointer to the ''host'' OS
+
+  e_surf_vm_state_t current_state;
+
+
+  surf_action_t cpu_action;
+
+} s_workstation_VM2013_t, *workstation_VM2013_t;
+
+
+#endif /* VM_WS_PRIVATE_H_ */