Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
24425cc81f56ca78ad4c14946ca08f035ab2b29e
[simgrid.git] / include / simgrid / plugins / live_migration.h
1 /* Copyright (c) 2017. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #ifndef SIMGRID_PLUGINS_LIVE_MIGRATION_H_
8 #define SIMGRID_PLUGINS_LIVE_MIGRATION_H_
9
10 #include <simgrid/forward.h>
11 #include <xbt/base.h>
12
13 SG_BEGIN_DECL()
14
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);
28
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)
31
32 SG_END_DECL()
33
34 #endif