diff options
author | Steve Sistare <steven.sistare@oracle.com> | 2024-03-11 10:48:52 -0700 |
---|---|---|
committer | Peter Xu <peterx@redhat.com> | 2024-03-11 16:28:59 -0400 |
commit | 714f33123bfc73c6caacd19a44e082da8cdc96e3 (patch) | |
tree | b185dd3e99ecc11639ee71bfc15c11805e41d1c2 /system/dirtylimit.c | |
parent | aeaafb1e59f81f5cc715e656dac23f3fe5db3faa (diff) |
migration: export vcpu_dirty_limit_period
Define and export vcpu_dirty_limit_period to eliminate a dependency
on MigrationState.
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Link: https://lore.kernel.org/r/1710179338-294359-6-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/system/dirtylimit.c b/system/dirtylimit.c index 1622bb7426..b0afaa0776 100644 --- a/system/dirtylimit.c +++ b/system/dirtylimit.c @@ -77,14 +77,13 @@ static bool dirtylimit_quit; static void vcpu_dirty_rate_stat_collect(void) { - MigrationState *s = migrate_get_current(); VcpuStat stat; int i = 0; int64_t period = DIRTYLIMIT_CALC_TIME_MS; if (migrate_dirty_limit() && migration_is_active()) { - period = s->parameters.x_vcpu_dirty_limit_period; + period = migrate_vcpu_dirty_limit_period(); } /* calculate vcpu dirtyrate */ |