aboutsummaryrefslogtreecommitdiff
path: root/migration/options.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-03-02 01:22:44 +0100
committerJuan Quintela <quintela@redhat.com>2023-04-24 15:01:47 +0200
commit2a8ec38082f8098f2693bb3632175453c0c84a51 (patch)
tree9e2500c2a2fe67addf5c08d16b9b90534e7103d8 /migration/options.c
parent2682c4eea72c621dfd0fb0151cbd758e81d1bdff (diff)
downloadqemu-2a8ec38082f8098f2693bb3632175453c0c84a51.zip
qemu-2a8ec38082f8098f2693bb3632175453c0c84a51.tar.gz
qemu-2a8ec38082f8098f2693bb3632175453c0c84a51.tar.bz2
migration: Create migrate_cpu_throttle_initial() to option.c
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 418aafa..f7fb699 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -509,6 +509,15 @@ int migrate_compress_wait_thread(void)
return s->parameters.compress_wait_thread;
}
+uint8_t migrate_cpu_throttle_initial(void)
+{
+ MigrationState *s;
+
+ s = migrate_get_current();
+
+ return s->parameters.cpu_throttle_initial;
+}
+
int migrate_decompress_threads(void)
{
MigrationState *s;