RE: [PATCH v3 1/2] Update AVX512 support for xbzrle_encode_buffer function

2022-08-11 Thread Xu, Ling1
ards, Ling -Original Message- From: Richard Henderson Sent: Wednesday, August 10, 2022 2:25 AM To: Xu, Ling1 ; quint...@redhat.com Cc: qemu-devel@nongnu.org; dgilb...@redhat.com; Zhao, Zhou ; Jin, Jun I Subject: Re: [PATCH v3 1/2] Update AVX512 support for xbzrle_encode_buffer function On 8/9/22

Re: [PATCH v3 1/2] Update AVX512 support for xbzrle_encode_buffer function

2022-08-09 Thread Richard Henderson
On 8/8/22 00:48, ling xu wrote: This commit update runtime check of AVX512, and implements avx512 of xbzrle_encode_buffer function to accelerate xbzrle encoding speed. Compared with C version of xbzrle_encode_buffer function, avx512 version can achieve almost 60%-70% performance improvement on un

Re: [PATCH v3 1/2] Update AVX512 support for xbzrle_encode_buffer function

2022-08-09 Thread Richard Henderson
On 8/9/22 00:51, Xu, Ling1 wrote: Hi, Juan, Thanks for your advice. We have revised our code including: 1) change "IS_CPU_SUPPORT_AVX512BW" to "is_cpu_support_avx512bw" to indicate that variable isn't global variable; You can remove this variable entirely... 2) use a function pointer

RE: [PATCH v3 1/2] Update AVX512 support for xbzrle_encode_buffer function

2022-08-09 Thread Xu, Ling1
comments. Best Regard, Ling -Original Message- From: Juan Quintela Sent: Monday, August 8, 2022 9:12 PM To: Xu, Ling1 Cc: qemu-devel@nongnu.org; dgilb...@redhat.com; Zhao, Zhou ; Jin, Jun I Subject: Re: [PATCH v3 1/2] Update AVX512 support for xbzrle_encode_buffer function l

Re: [PATCH v3 1/2] Update AVX512 support for xbzrle_encode_buffer function

2022-08-08 Thread Juan Quintela
ling xu wrote: > This commit update runtime check of AVX512, and implements avx512 of > xbzrle_encode_buffer function to accelerate xbzrle encoding speed. > Compared with C version of xbzrle_encode_buffer function, avx512 version > can achieve almost 60%-70% performance improvement on unit test pr

[PATCH v3 1/2] Update AVX512 support for xbzrle_encode_buffer function

2022-08-08 Thread ling xu
This commit update runtime check of AVX512, and implements avx512 of xbzrle_encode_buffer function to accelerate xbzrle encoding speed. Compared with C version of xbzrle_encode_buffer function, avx512 version can achieve almost 60%-70% performance improvement on unit test provided by Qemu. In addit

[PATCH v3 1/2] Update AVX512 support for xbzrle_encode_buffer function

2022-08-08 Thread ling xu
This commit update runtime check of AVX512, and implements avx512 of xbzrle_encode_buffer function to accelerate xbzrle encoding speed. Compared with C version of xbzrle_encode_buffer function, avx512 version can achieve almost 60%-70% performance improvement on unit test provided by Qemu. In addit