migration: move handle of zero page to the thread
commit5e5fdcff28ebbba2004c6498218f506f364f1e8a
authorXiao Guangrong <xiaoguangrong@tencent.com>
Tue, 21 Aug 2018 08:10:24 +0000 (21 16:10 +0800)
committerJuan Quintela <quintela@redhat.com>
Wed, 22 Aug 2018 10:36:18 +0000 (22 12:36 +0200)
tree0139af1478d32448acf887c63666079b21f61c9c
parent6ef3771c0d070e8f16e12f21e4fbf1ec6459eff6
migration: move handle of zero page to the thread

Detecting zero page is not a light work, moving it to the thread to
speed the main thread up, btw, handling ram_release_pages() for the
zero page is moved to the thread as well

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>
migration/ram.c