Index: migration.c =================================================================== --- migration.c (revision 5521) +++ migration.c (working copy) @@ -15,6 +15,8 @@ #include "migration.h" #include "console.h" +#if !defined(WIN32) + /* Migration speed throttling */ static uint32_t max_throttle = (32 << 20); @@ -101,3 +103,4 @@ } } +#endif /* !WIN32 */ Index: vl.c =================================================================== --- vl.c (revision 5521) +++ vl.c (working copy) @@ -6213,6 +6213,7 @@ return 18; /* len */ } +#if !defined(WIN32) void qemu_announce_self(void) { int i, j, len; @@ -6230,6 +6231,7 @@ } } } +#endif /***********************************************************/ /* savevm/loadvm support */ @@ -9744,10 +9746,12 @@ if (loadvm) do_loadvm(loadvm); +#if !defined(WIN32) if (incoming) { autostart = 0; /* fixme how to deal with -daemonize */ qemu_start_incoming_migration(incoming); } +#endif { /* XXX: simplify init */ Index: monitor.c =================================================================== --- monitor.c (revision 5521) +++ monitor.c (working copy) @@ -1455,12 +1455,14 @@ { "nmi", "i", do_inject_nmi, "cpu", "inject an NMI on the given CPU", }, #endif +#if !defined(WIN32) { "migrate", "-ds", do_migrate, "[-d] uri", "migrate to URI (using -d to not wait for completion)" }, { "migrate_cancel", "", do_migrate_cancel, "", "cancel the current VM migration" }, { "migrate_set_speed", "s", do_migrate_set_speed, "value", "set maximum speed (in bytes) for migrations" }, +#endif { NULL, NULL, }, }; @@ -1523,7 +1525,9 @@ { "slirp", "", do_info_slirp, "", "show SLIRP statistics", }, #endif +#if !defined(WIN32) { "migrate", "", do_info_migrate, "", "show migration status" }, +#endif { NULL, NULL, }, }; Index: migration-tcp.c =================================================================== --- migration-tcp.c (revision 5521) +++ migration-tcp.c (working copy) @@ -20,6 +20,8 @@ #include "buffered_file.h" #include "block.h" +#if !defined(WIN32) + //#define DEBUG_MIGRATION_TCP typedef struct FdMigrationState @@ -369,3 +371,5 @@ close(s); return -errno; } + +#endif /* !WIN32 */