aboutsummaryrefslogtreecommitdiff
path: root/migration/options.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-03-02 12:00:43 +0100
committerJuan Quintela <quintela@redhat.com>2023-04-27 16:37:28 +0200
commitf5da8ba4777f3ab88bfee82bbf8261d6295a26a2 (patch)
tree59d3c08d2893189bb2150d5aebf572e8d55d2a04 /migration/options.c
parent8f9c532756c598c29282a1ec2f11fb615e2fd3c7 (diff)
migration: Create migrate_downtime_limit() function
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Diffstat (limited to 'migration/options.c')
-rw-r--r--migration/options.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/migration/options.c b/migration/options.c
index 0b1b56e68f..f4ffe99603 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -518,6 +518,13 @@ int migrate_decompress_threads(void)
return s->parameters.decompress_threads;
}
+uint64_t migrate_downtime_limit(void)
+{
+ MigrationState *s = migrate_get_current();
+
+ return s->parameters.downtime_limit;
+}
+
uint8_t migrate_max_cpu_throttle(void)
{
MigrationState *s = migrate_get_current();