Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Hosts and VMs internal refactor.
authorBruno Donassolo <bruno.donassolo@inria.fr>
Fri, 8 Apr 2022 08:15:36 +0000 (10:15 +0200)
committerBruno Donassolo <bruno.donassolo@inria.fr>
Mon, 11 Apr 2022 08:56:16 +0000 (10:56 +0200)
commita47ce47003f276edbe70d6b0536f0f32c96ae212
treeacb7ef292ecf71099994a8411d2bb001521edae8
parent1ff76126787bd490c02f88480e50627b8c43964f
Hosts and VMs internal refactor.

Main changes:
- Netzones contains their hosts.
- Hosts saves their VMs.
- Remove "global" Engine::hosts_.

Possible mapped impacts:
- Hosts destruction order: it was global in the past, now it depends on
the netzones. However, no test affected

Other changes:
- Move code from VirtualMachine interface to VirtualMachineImpl
- Add a HostImpl::create_vm to create VMs: similar to create_host for
NetZoneImpl
12 files changed:
include/simgrid/kernel/routing/NetZoneImpl.hpp
include/simgrid/s4u/VirtualMachine.hpp
src/kernel/EngineImpl.cpp
src/kernel/EngineImpl.hpp
src/kernel/resource/VirtualMachineImpl.cpp
src/kernel/resource/VirtualMachineImpl.hpp
src/kernel/routing/NetZoneImpl.cpp
src/s4u/s4u_Engine.cpp
src/s4u/s4u_Host.cpp
src/s4u/s4u_VirtualMachine.cpp
src/surf/HostImpl.cpp
src/surf/HostImpl.hpp