- LMM stuff moved to its own namespace: simgrid::kernel::lmm.
- Renamed LMM classes (e.g. s_lmm_system_t -> System).
+ Virtual Machines
+ - Live migration is getting moved to a plugin. Dirty page tracking is
+ the first part of this plugin. This imply that VM migration is now
+ only possible if one this function is called :
+ - C/MSG: MSG_vm_live_migration_plugin_init()
+ - C/C++: sg_vm_live_migration_plugin_init()
+ - Java: Msg.liveMigrationInit()
+ For C and C++, "simgrid/plugins/live_migration.h" also has to be
+ included.
+
XBT
- Define class simgrid::xbt::Path to manage file names.
- Removed unused functions:
public static void main(String[] args) {
Msg.init(args);
+ Msg.liveMigrationInit();
String platfFile = "../../examples/platforms/small_platform.xml";
if (args.length >= 1)
public static void main(String[] args) throws MsgException {
Msg.init(args);
-
+ Msg.liveMigrationInit();
if (args.length < 1) {
Msg.info("Usage : Main platform_file.xml");
System.exit(1);
#include "simgrid/msg.h"
#include "simgrid/plugins/energy.h"
#include "simgrid/plugins/file_system.h"
+#include "simgrid/plugins/live_migration.h"
#include "simgrid/simix.h"
#include "simgrid/s4u/Host.hpp"
sg_host_energy_plugin_init();
}
+JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_liveMigrationInit()
+{
+ sg_vm_live_migration_plugin_init();
+}
+
JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_fileSystemInit()
{
sg_storage_file_system_init();
JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_init(JNIEnv* env, jclass cls, jobjectArray jargs);
JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_energyInit();
+JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_liveMigrationInit();
JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_fileSystemInit();
JNIEXPORT void JNICALL Java_org_simgrid_msg_Msg_debug(JNIEnv* env, jclass cls, jstring jargs);
/** Tell the kernel that you want to use the energy plugin */
public static final native void energyInit();
public static final native void fileSystemInit();
+ public static final native void liveMigrationInit();
/** Run the MSG simulation.
*