aboutsummaryrefslogtreecommitdiff
path: root/migration/options.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-03-02 10:29:51 +0100
committerJuan Quintela <quintela@redhat.com>2023-04-24 15:01:47 +0200
commit873f674c559e3162a6e6e92994301d400c5cc873 (patch)
tree43bb99d38bf1deccb66a99feae23700a255b6096 /migration/options.c
parent9605c2ac282c565bb00b5f344217161bef29eff8 (diff)
migration: Create migrate_cpu_throttle_tailslow() function
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'migration/options.c')
-rw-r--r--migration/options.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/migration/options.c b/migration/options.c
index 31435d2b45..615534c151 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -527,6 +527,15 @@ uint8_t migrate_cpu_throttle_initial(void)
return s->parameters.cpu_throttle_initial;
}
+bool migrate_cpu_throttle_tailslow(void)
+{
+ MigrationState *s;
+
+ s = migrate_get_current();
+
+ return s->parameters.cpu_throttle_tailslow;
+}
+
int migrate_decompress_threads(void)
{
MigrationState *s;