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);
20 XBT_PUBLIC(int) sg_vm_is_migratable(sg_vm_t vm);
21 XBT_PUBLIC(void) sg_vm_set_dirty_page_intensity(sg_vm_t vm, double intensity);
22 XBT_PUBLIC(double) sg_vm_get_dirty_page_intensity(sg_vm_t vm);
23 XBT_PUBLIC(void) sg_vm_set_working_set_memory(sg_vm_t vm, sg_size_t size);
24 XBT_PUBLIC(sg_size_t) sg_vm_get_working_set_memory(sg_vm_t vm);
25 XBT_PUBLIC(void) sg_vm_set_migration_speed(sg_vm_t vm, double speed);
26 XBT_PUBLIC(double) sg_vm_get_migration_speed(sg_vm_t vm);
27 XBT_PUBLIC(double) sg_vm_get_max_downtime(sg_vm_t vm);
29 #define MSG_vm_live_migration_plugin_init() sg_vm_live_migration_plugin_init()
30 #define MSG_vm_migrate(vm, dst_pm) sg_vm_migrate(vm, dst_pm)