mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 01:43:39 +00:00
migration: Move migrate_postcopy() to options.c
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
parent
873f674c55
commit
f774fde5d4
|
@ -2245,11 +2245,6 @@ void qmp_migrate_continue(MigrationStatus state, Error **errp)
|
|||
qemu_sem_post(&s->pause_sem);
|
||||
}
|
||||
|
||||
bool migrate_postcopy(void)
|
||||
{
|
||||
return migrate_postcopy_ram() || migrate_dirty_bitmaps();
|
||||
}
|
||||
|
||||
int migrate_use_tls(void)
|
||||
{
|
||||
MigrationState *s;
|
||||
|
|
|
@ -447,8 +447,6 @@ bool migration_is_blocked(Error **errp);
|
|||
bool migration_in_postcopy(void);
|
||||
MigrationState *migrate_get_current(void);
|
||||
|
||||
bool migrate_postcopy(void);
|
||||
|
||||
int migrate_use_tls(void);
|
||||
|
||||
uint64_t ram_get_total_transferred_pages(void);
|
||||
|
|
|
@ -204,6 +204,14 @@ bool migrate_zero_copy_send(void)
|
|||
|
||||
return s->capabilities[MIGRATION_CAPABILITY_ZERO_COPY_SEND];
|
||||
}
|
||||
|
||||
/* pseudo capabilities */
|
||||
|
||||
bool migrate_postcopy(void)
|
||||
{
|
||||
return migrate_postcopy_ram() || migrate_dirty_bitmaps();
|
||||
}
|
||||
|
||||
typedef enum WriteTrackingSupport {
|
||||
WT_SUPPORT_UNKNOWN = 0,
|
||||
WT_SUPPORT_ABSENT,
|
||||
|
|
|
@ -38,6 +38,15 @@ bool migrate_xbzrle(void);
|
|||
bool migrate_zero_blocks(void);
|
||||
bool migrate_zero_copy_send(void);
|
||||
|
||||
/*
|
||||
* pseudo capabilities
|
||||
*
|
||||
* These are functions that are used in a similar way to capabilities
|
||||
* check, but they are not a capability.
|
||||
*/
|
||||
|
||||
bool migrate_postcopy(void);
|
||||
|
||||
/* capabilities helpers */
|
||||
|
||||
bool migrate_caps_check(bool *old_caps, bool *new_caps, Error **errp);
|
||||
|
|
Loading…
Reference in a new issue