Re: [Qemu-devel] [PATCH v3 3/5] migration: use threaded workqueue for compression

2018-11-26 Thread Xiao Guangrong
On 11/24/18 2:29 AM, Dr. David Alan Gilbert wrote: static void -update_compress_thread_counts(const CompressParam *param, int bytes_xmit) +update_compress_thread_counts(CompressData *cd, int bytes_xmit) Keep the const? Yes, indeed. Will correct it in the next version. +if (deflate

Re: [Qemu-devel] [PATCH v3 3/5] migration: use threaded workqueue for compression

2018-11-23 Thread Dr. David Alan Gilbert
* guangrong.x...@gmail.com (guangrong.x...@gmail.com) wrote: > From: Xiao Guangrong > > Adapt the compression code to the threaded workqueue > > Signed-off-by: Xiao Guangrong > --- > migration/ram.c | 308 > > 1 file changed, 110 insert

Re: [Qemu-devel] [PATCH v3 3/5] migration: use threaded workqueue for compression

2018-11-23 Thread Paolo Bonzini
On 23/11/18 19:17, Dr. David Alan Gilbert wrote: > * guangrong.x...@gmail.com (guangrong.x...@gmail.com) wrote: >> From: Xiao Guangrong >> >> Adapt the compression code to the threaded workqueue >> >> Signed-off-by: Xiao Guangrong >> --- >> migration/ram.c | 308 >> -

Re: [Qemu-devel] [PATCH v3 3/5] migration: use threaded workqueue for compression

2018-11-23 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > On 23/11/18 19:17, Dr. David Alan Gilbert wrote: > > * guangrong.x...@gmail.com (guangrong.x...@gmail.com) wrote: > >> From: Xiao Guangrong > >> > >> Adapt the compression code to the threaded workqueue > >> > >> Signed-off-by: Xiao Guangrong > >> --

[Qemu-devel] [PATCH v3 3/5] migration: use threaded workqueue for compression

2018-11-21 Thread guangrong . xiao
From: Xiao Guangrong Adapt the compression code to the threaded workqueue Signed-off-by: Xiao Guangrong --- migration/ram.c | 308 1 file changed, 110 insertions(+), 198 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index