diff options
author | Xiao Guangrong <xiaoguangrong@tencent.com> | 2018-08-21 16:10:20 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2018-08-22 12:34:11 +0200 |
commit | 1d58872a910cdfe8df79be5ffb4c4c6c13768f40 (patch) | |
tree | e9512fe2fb45ad8555dcda61f2ee40314889e790 /migration/migration.h | |
parent | 923709896b1b01fb982c93492ad01b233e6b6023 (diff) | |
download | qemu-1d58872a910cdfe8df79be5ffb4c4c6c13768f40.zip qemu-1d58872a910cdfe8df79be5ffb4c4c6c13768f40.tar.gz qemu-1d58872a910cdfe8df79be5ffb4c4c6c13768f40.tar.bz2 |
migration: do not wait for free thread
Instead of putting the main thread to sleep state to wait for
free compression thread, we can directly post it out as normal
page that reduces the latency and uses CPUs more efficiently
A parameter, compress-wait-thread, is introduced, it can be
enabled if the user really wants the old behavior
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/migration.h')
-rw-r--r-- | migration/migration.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/migration.h b/migration/migration.h index eb0c04a..f7813f8 100644 --- a/migration/migration.h +++ b/migration/migration.h @@ -272,6 +272,7 @@ bool migrate_use_return_path(void); bool migrate_use_compression(void); int migrate_compress_level(void); int migrate_compress_threads(void); +int migrate_compress_wait_thread(void); int migrate_decompress_threads(void); bool migrate_use_events(void); bool migrate_postcopy_blocktime(void); |