1 /* Copyright (c) 2017. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #ifndef SIMGRID_PLUGINS_LIVE_MIGRATION_H_
8 #define SIMGRID_PLUGINS_LIVE_MIGRATION_H_
10 #include <simgrid/forward.h>
15 XBT_PUBLIC(void) sg_vm_live_migration_plugin_init();
16 XBT_PUBLIC(void) sg_vm_start_dirty_page_tracking(sg_vm_t vm);
17 XBT_PUBLIC(void) sg_vm_stop_dirty_page_tracking(sg_vm_t vm);
18 XBT_PUBLIC(double) sg_vm_lookup_computed_flops(sg_vm_t vm);
19 XBT_PUBLIC(void) sg_vm_migrate(sg_vm_t vm, sg_host_t dst_pm);
21 #define MSG_vm_live_migration_plugin_init() sg_vm_live_migration_plugin_init()
22 #define MSG_vm_migrate(vm, dst_pm) sg_vm_migrate(vm, dst_pm)