mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
migration: export migrate_get_current()
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
c00012f68b
commit
859bc7569a
2 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,7 @@ static NotifierList migration_state_notifiers =
|
|||
migrations at once. For now we don't need to add
|
||||
dynamic creation of migration */
|
||||
|
||||
static MigrationState *migrate_get_current(void)
|
||||
MigrationState *migrate_get_current(void)
|
||||
{
|
||||
static MigrationState current_migration = {
|
||||
.state = MIG_STATE_SETUP,
|
||||
|
|
|
@ -81,6 +81,7 @@ void remove_migration_state_change_notifier(Notifier *notify);
|
|||
bool migration_is_active(MigrationState *);
|
||||
bool migration_has_finished(MigrationState *);
|
||||
bool migration_has_failed(MigrationState *);
|
||||
MigrationState *migrate_get_current(void);
|
||||
|
||||
uint64_t ram_bytes_remaining(void);
|
||||
uint64_t ram_bytes_transferred(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue