A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[surf] Add backlinks from Cpu to surf::Host
[simgrid.git]
/
src
/
surf
/
vm_hl13.cpp
diff --git
a/src/surf/vm_hl13.cpp
b/src/surf/vm_hl13.cpp
index
c0f76ca
..
208e24e
100644
(file)
--- a/
src/surf/vm_hl13.cpp
+++ b/
src/surf/vm_hl13.cpp
@@
-6,6
+6,8
@@
#include <algorithm>
#include <algorithm>
+#include <simgrid/host.h>
+
#include "cpu_cas01.hpp"
#include "vm_hl13.hpp"
#include "cpu_cas01.hpp"
#include "vm_hl13.hpp"
@@
-179,7
+181,8
@@
VMHL13::VMHL13(VMModel *model, const char* name, xbt_dict_t props,
* is still used by the physical machine. */
sg_host_t sg_sub_ws = sg_host_by_name_or_create(sub_ws->getName());
p_netElm = new RoutingEdgeWrapper(sg_host_edge(sg_sub_ws));
* is still used by the physical machine. */
sg_host_t sg_sub_ws = sg_host_by_name_or_create(sub_ws->getName());
p_netElm = new RoutingEdgeWrapper(sg_host_edge(sg_sub_ws));
- sg_host_edge_set(sg_host_by_name_or_create(name), p_netElm);
+ sg_host_t host = sg_host_by_name_or_create(name);
+ sg_host_edge_set(host, p_netElm);
p_subWs = sub_ws;
p_currentState = SURF_VM_STATE_CREATED;
p_subWs = sub_ws;
p_currentState = SURF_VM_STATE_CREATED;
@@
-197,6
+200,7
@@
VMHL13::VMHL13(VMModel *model, const char* name, xbt_dict_t props,
SURF_RESOURCE_ON, // host->initial_state,
NULL, // host->state_trace,
NULL); // host->properties,
SURF_RESOURCE_ON, // host->initial_state,
NULL, // host->state_trace,
NULL); // host->properties,
+ p_cpu->plug(host);
/* We create cpu_action corresponding to a VM process on the host operating system. */
/* FIXME: TODO: we have to periodically input GUESTOS_NOISE to the system? how ? */
/* We create cpu_action corresponding to a VM process on the host operating system. */
/* FIXME: TODO: we have to periodically input GUESTOS_NOISE to the system? how ? */