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
VM: code simplification by ensuring that the piface field is set
[simgrid.git]
/
src
/
surf
/
vm_hl13.cpp
diff --git
a/src/surf/vm_hl13.cpp
b/src/surf/vm_hl13.cpp
index
4a4d61b
..
09cb663
100644
(file)
--- a/
src/surf/vm_hl13.cpp
+++ b/
src/surf/vm_hl13.cpp
@@
-28,11
+28,11
@@
VMHL13Model::VMHL13Model() : VMModel() {}
void VMHL13Model::updateActionsState(double /*now*/, double /*delta*/) {}
void VMHL13Model::updateActionsState(double /*now*/, double /*delta*/) {}
-
VirtualMachine
*VMHL13Model::createVM(const char *name, sg_host_t host_PM)
+
s4u::Host
*VMHL13Model::createVM(const char *name, sg_host_t host_PM)
{
VirtualMachine* vm = new VMHL13(this, name, host_PM);
VMCreatedCallbacks(vm);
{
VirtualMachine* vm = new VMHL13(this, name, host_PM);
VMCreatedCallbacks(vm);
- return vm;
+ return vm
->piface
;
}
/* In the real world, processes on the guest operating system will be somewhat degraded due to virtualization overhead.
}
/* In the real world, processes on the guest operating system will be somewhat degraded due to virtualization overhead.
@@
-202,9
+202,5
@@
void VMHL13::setBound(double bound){
action_->setBound(bound);
}
action_->setBound(bound);
}
-void VMHL13::setAffinity(Cpu *cpu, unsigned long mask){
- action_->setAffinity(cpu, mask);
-}
-
}
}
}
}