mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
migration: export migration_is_running
Delete the MigrationState parameter from migration_is_running and move it to the public API in misc.h. Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Link: https://lore.kernel.org/r/1710179338-294359-5-git-send-email-steven.sistare@oracle.com Signed-off-by: Peter Xu <peterx@redhat.com>
This commit is contained in:
parent
3a6813b68c
commit
aeaafb1e59
7 changed files with 13 additions and 12 deletions
|
@ -451,7 +451,7 @@ static bool dirtylimit_is_allowed(void)
|
|||
{
|
||||
MigrationState *ms = migrate_get_current();
|
||||
|
||||
if (migration_is_running(ms->state) &&
|
||||
if (migration_is_running() &&
|
||||
(!qemu_thread_is_self(&ms->thread)) &&
|
||||
migrate_dirty_limit() &&
|
||||
dirtylimit_in_service()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue