migration.c (a7a94d14358dd7b445e20c2f26218ff987747642) | migration.c (b890902c9c025b87d02e718eec3090fd3525ab18) |
---|---|
1/* 2 * QEMU live migration 3 * 4 * Copyright IBM, Corp. 2008 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 339 unchanged lines hidden (view full) --- 348 mis->postcopy_qemufile_dst = NULL; 349 } 350 351 yank_unregister_instance(MIGRATION_YANK_INSTANCE); 352} 353 354static void migrate_generate_event(int new_state) 355{ | 1/* 2 * QEMU live migration 3 * 4 * Copyright IBM, Corp. 2008 5 * 6 * Authors: 7 * Anthony Liguori <aliguori@us.ibm.com> 8 * --- 339 unchanged lines hidden (view full) --- 348 mis->postcopy_qemufile_dst = NULL; 349 } 350 351 yank_unregister_instance(MIGRATION_YANK_INSTANCE); 352} 353 354static void migrate_generate_event(int new_state) 355{ |
356 if (migrate_use_events()) { | 356 if (migrate_events()) { |
357 qapi_event_send_migration(new_state); 358 } 359} 360 361/* 362 * Send a message on the return channel back to the source 363 * of the migration. 364 */ --- 2188 unchanged lines hidden (view full) --- 2553{ 2554 MigrationState *s; 2555 2556 s = migrate_get_current(); 2557 2558 return s->parameters.decompress_threads; 2559} 2560 | 357 qapi_event_send_migration(new_state); 358 } 359} 360 361/* 362 * Send a message on the return channel back to the source 363 * of the migration. 364 */ --- 2188 unchanged lines hidden (view full) --- 2553{ 2554 MigrationState *s; 2555 2556 s = migrate_get_current(); 2557 2558 return s->parameters.decompress_threads; 2559} 2560 |
2561bool migrate_use_events(void) 2562{ 2563 MigrationState *s; 2564 2565 s = migrate_get_current(); 2566 2567 return s->capabilities[MIGRATION_CAPABILITY_EVENTS]; 2568} 2569 | |
2570bool migrate_use_multifd(void) 2571{ 2572 MigrationState *s; 2573 2574 s = migrate_get_current(); 2575 2576 return s->capabilities[MIGRATION_CAPABILITY_MULTIFD]; 2577} --- 1911 unchanged lines hidden --- | 2561bool migrate_use_multifd(void) 2562{ 2563 MigrationState *s; 2564 2565 s = migrate_get_current(); 2566 2567 return s->capabilities[MIGRATION_CAPABILITY_MULTIFD]; 2568} --- 1911 unchanged lines hidden --- |