• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * QEMU live migration
3  *
4  * Copyright IBM, Corp. 2008
5  *
6  * Authors:
7  *  Anthony Liguori   <aliguori@us.ibm.com>
8  *
9  * This work is licensed under the terms of the GNU GPL, version 2.  See
10  * the COPYING file in the top-level directory.
11  *
12  */
13 
14 #include "qemu-common.h"
15 #include "migration/migration.h"
16 #include "monitor/monitor.h"
17 #include "sysemu/sysemu.h"
18 #include "block/block.h"
19 #include "qemu/sockets.h"
20 
21 //#define DEBUG_MIGRATION
22 
23 #ifdef DEBUG_MIGRATION
24 #define dprintf(fmt, ...) \
25     do { printf("migration: " fmt, ## __VA_ARGS__); } while (0)
26 #else
27 #define dprintf(fmt, ...) \
28     do { } while (0)
29 #endif
30 
qemu_start_incoming_migration(const char * uri)31 void qemu_start_incoming_migration(const char *uri)
32 {
33     fprintf(stderr, "migration not supported !!\n");
34 }
35 
do_migrate(Monitor * mon,int detach,const char * uri)36 void do_migrate(Monitor *mon, int detach, const char *uri)
37 {
38 	return;
39 }
40 
do_migrate_cancel(Monitor * mon)41 void do_migrate_cancel(Monitor *mon)
42 {
43 	return;
44 }
45 
do_migrate_set_speed(Monitor * mon,const char * value)46 void do_migrate_set_speed(Monitor *mon, const char *value)
47 {
48 	return;
49 }
50 
migrate_max_downtime(void)51 uint64_t migrate_max_downtime(void)
52 {
53     return 0;
54 }
55 
do_migrate_set_downtime(Monitor * mon,const char * value)56 void do_migrate_set_downtime(Monitor *mon, const char *value)
57 {
58     return;
59 }
60 
do_info_migrate(Monitor * mon)61 void do_info_migrate(Monitor *mon)
62 {
63 	monitor_printf(mon, "No Migration support\n");
64 }
65