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
Change the way VMs are created.
[simgrid.git]
/
teshsuite
/
s4u
/
vm-live-migration
/
vm-live-migration.cpp
diff --git
a/teshsuite/s4u/vm-live-migration/vm-live-migration.cpp
b/teshsuite/s4u/vm-live-migration/vm-live-migration.cpp
index
3352418
..
11fd36a
100644
(file)
--- a/
teshsuite/s4u/vm-live-migration/vm-live-migration.cpp
+++ b/
teshsuite/s4u/vm-live-migration/vm-live-migration.cpp
@@
-36,8
+36,8
@@
int main(int argc, char* argv[])
xbt_assert(argc == 2, "Usage: %s platform.xml\n", argv[0]);
e.load_platform(argv[1]);
xbt_assert(argc == 2, "Usage: %s platform.xml\n", argv[0]);
e.load_platform(argv[1]);
- auto* pm =
simgrid::s4u::Host::
by_name("host1");
- auto* vm =
new simgrid::s4u::VirtualMachine("VM0", pm
, 1 /*nCores*/);
+ auto* pm =
e.host_
by_name("host1");
+ auto* vm =
pm->create_vm("VM0"
, 1 /*nCores*/);
vm->set_ramsize(1250000000)->start();
simgrid::s4u::Actor::create("executor", vm, task_executor);
vm->set_ramsize(1250000000)->start();
simgrid::s4u::Actor::create("executor", vm, task_executor);