migration: do not wait for free thread
commit1d58872a910cdfe8df79be5ffb4c4c6c13768f40
authorXiao Guangrong <xiaoguangrong@tencent.com>
Tue, 21 Aug 2018 08:10:20 +0000 (21 16:10 +0800)
committerJuan Quintela <quintela@redhat.com>
Wed, 22 Aug 2018 10:34:11 +0000 (22 12:34 +0200)
treee9512fe2fb45ad8555dcda61f2ee40314889e790
parent923709896b1b01fb982c93492ad01b233e6b6023
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>
hmp.c
migration/migration.c
migration/migration.h
migration/ram.c
qapi/migration.json