17b1e1a22SJuan Quintela /* 27b1e1a22SJuan Quintela * QEMU migration miscellaneus exported functions 37b1e1a22SJuan Quintela * 47b1e1a22SJuan Quintela * Copyright IBM, Corp. 2008 57b1e1a22SJuan Quintela * 67b1e1a22SJuan Quintela * Authors: 77b1e1a22SJuan Quintela * Anthony Liguori <aliguori@us.ibm.com> 87b1e1a22SJuan Quintela * 97b1e1a22SJuan Quintela * This work is licensed under the terms of the GNU GPL, version 2. See 107b1e1a22SJuan Quintela * the COPYING file in the top-level directory. 117b1e1a22SJuan Quintela * 127b1e1a22SJuan Quintela */ 137b1e1a22SJuan Quintela 147b1e1a22SJuan Quintela #ifndef MIGRATION_MISC_H 157b1e1a22SJuan Quintela #define MIGRATION_MISC_H 167b1e1a22SJuan Quintela 17*6bcb05fcSWei Wang #include "exec/cpu-common.h" 181adc1ceeSJuan Quintela #include "qemu/notify.h" 19ee3d96baSDr. David Alan Gilbert #include "qapi/qapi-types-net.h" 201adc1ceeSJuan Quintela 217b1e1a22SJuan Quintela /* migration/ram.c */ 227b1e1a22SJuan Quintela 237b1e1a22SJuan Quintela void ram_mig_init(void); 24*6bcb05fcSWei Wang void qemu_guest_free_page_hint(void *addr, size_t len); 257b1e1a22SJuan Quintela 262c9e6fecSJuan Quintela /* migration/block.c */ 272c9e6fecSJuan Quintela 282c9e6fecSJuan Quintela #ifdef CONFIG_LIVE_BLOCK_MIGRATION 292c9e6fecSJuan Quintela void blk_mig_init(void); 302c9e6fecSJuan Quintela #else 312c9e6fecSJuan Quintela static inline void blk_mig_init(void) {} 322c9e6fecSJuan Quintela #endif 332c9e6fecSJuan Quintela 34ee3d96baSDr. David Alan Gilbert AnnounceParameters *migrate_announce_params(void); 35b7722747SJuan Quintela /* migration/savevm.c */ 36b7722747SJuan Quintela 37b7722747SJuan Quintela void dump_vmstate_json_to_file(FILE *out_fp); 38b7722747SJuan Quintela 39c4b63b7cSJuan Quintela /* migration/migration.c */ 40e5cb7e76SPeter Xu void migration_object_init(void); 41892ae715SDr. David Alan Gilbert void migration_shutdown(void); 42c4b63b7cSJuan Quintela void qemu_start_incoming_migration(const char *uri, Error **errp); 43c4b63b7cSJuan Quintela bool migration_is_idle(void); 44c4b63b7cSJuan Quintela void add_migration_state_change_notifier(Notifier *notify); 45c4b63b7cSJuan Quintela void remove_migration_state_change_notifier(Notifier *notify); 46c4b63b7cSJuan Quintela bool migration_in_setup(MigrationState *); 47c4b63b7cSJuan Quintela bool migration_has_finished(MigrationState *); 48c4b63b7cSJuan Quintela bool migration_has_failed(MigrationState *); 49c4b63b7cSJuan Quintela /* ...and after the device transmission */ 50c4b63b7cSJuan Quintela bool migration_in_postcopy_after_devices(MigrationState *); 519d18af93SPeter Xu void migration_global_dump(Monitor *mon); 523df663e5SPeter Xu 53b35ebdf0SVladimir Sementsov-Ogievskiy /* migration/block-dirty-bitmap.c */ 54b35ebdf0SVladimir Sementsov-Ogievskiy void dirty_bitmap_mig_init(void); 55b35ebdf0SVladimir Sementsov-Ogievskiy 567b1e1a22SJuan Quintela #endif 57