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] Use the pointers to simgrid::Host instead of looking by name
[simgrid.git]
/
src
/
surf
/
vm_hl13.cpp
diff --git
a/src/surf/vm_hl13.cpp
b/src/surf/vm_hl13.cpp
index
037749c
..
f0c0ce8
100644
(file)
--- a/
src/surf/vm_hl13.cpp
+++ b/
src/surf/vm_hl13.cpp
@@
-340,8
+340,7
@@
void VMHL13::setAffinity(Cpu *cpu, unsigned long mask){
**/
sg_host_t VMHL13::getPm()
{
- // TODO, store pointer to the PM?
- return simgrid::Host::by_name_or_null(p_subWs->getName());
+ return p_subWs->getHost();
}
/* Adding a task to a VM updates the VCPU task on its physical machine. */