Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move the VM-related data out of MSG's private data for hosts
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 16 Nov 2016 21:49:18 +0000 (22:49 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 16 Nov 2016 22:04:17 +0000 (23:04 +0100)
commit128ea0e762c5eb7cd5c5a4be1cb7f745592be979
treef096e66d596a0fab4b33d745851ca074daea1d62
parent19df82877ce519ee7ce4b9daee206ad6939f4710
move the VM-related data out of MSG's private data for hosts

This is the beginning of turning the VMs into a separate plugin. I'm
sure that reconcentrating all VM code into a few files will greatly
simplify it.

This change is really messy because I did not want to be too intrusive
in msg_vm.c and had to expose much much of the VM internals for that.
It will be improved in the future (it cannot get any worse).

This reveals a little bug where the dirtyPages things of a VM that
runs on a host which turns down are not properly cleaned up. There is
nothing I can do right now as I don't have a onHostOff event or
something, so I simply spit a warning in this case. For now.
13 files changed:
include/simgrid/s4u/VirtualMachine.hpp
src/msg/msg_gos.cpp
src/msg/msg_host.cpp
src/msg/msg_private.h
src/msg/msg_vm.cpp
src/s4u/s4u_VirtualMachine.cpp
src/simix/smx_host.cpp
src/surf/VirtualMachineImpl.cpp
src/surf/VirtualMachineImpl.hpp
src/surf/VmHostExt.cpp [new file with mode: 0644]
src/surf/VmHostExt.hpp [new file with mode: 0644]
teshsuite/msg/host_on_off_processes/host_on_off_processes.tesh
tools/cmake/DefinePackages.cmake