aboutsummaryrefslogtreecommitdiff
path: root/system/dirtylimit.c
diff options
context:
space:
mode:
authorSteve Sistare <steven.sistare@oracle.com>2024-03-11 10:48:51 -0700
committerPeter Xu <peterx@redhat.com>2024-03-11 16:28:59 -0400
commitaeaafb1e59f81f5cc715e656dac23f3fe5db3faa (patch)
tree52d7e03dafa6805bd57ee0c3979815ef1075feac /system/dirtylimit.c
parent3a6813b68cf21a366522564f83f885bf2657dcc8 (diff)
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>
Diffstat (limited to 'system/dirtylimit.c')
-rw-r--r--system/dirtylimit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/dirtylimit.c b/system/dirtylimit.c
index 051e0311c1..1622bb7426 100644
--- a/system/dirtylimit.c
+++ b/system/dirtylimit.c
@@ -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()) {