RE: [PATCH] migration: Fix the minus value for compressed_size

2022-10-10 Thread Duan, Zhenzhong
>-Original Message- >From: Dr. David Alan Gilbert >Sent: Monday, October 10, 2022 6:35 PM >To: Duan, Zhenzhong >Cc: qemu-devel@nongnu.org; quint...@redhat.com >Subject: Re: [PATCH] migration: Fix the minus value for compressed_size > >* Zhenzhong Duan (zhenzho

Re: [PATCH] migration: Fix the minus value for compressed_size

2022-10-10 Thread Dr. David Alan Gilbert
* Zhenzhong Duan (zhenzhong.d...@intel.com) wrote: > When update_compress_thread_counts() is called first time, there is > no data stream yet. We see compression_counters.compressed_size > becomes minus value shortly. > > Signed-off-by: Zhenzhong Duan > --- > migration/ram.c | 4 > 1 file c

[PATCH] migration: Fix the minus value for compressed_size

2022-10-10 Thread Zhenzhong Duan
When update_compress_thread_counts() is called first time, there is no data stream yet. We see compression_counters.compressed_size becomes minus value shortly. Signed-off-by: Zhenzhong Duan --- migration/ram.c | 4 1 file changed, 4 insertions(+) diff --git a/migration/ram.c b/migration/r