[PATCH v2 0/2] Add AVX512F optimization option and buffer_zero_avx512()

Robert Hoo posted 2 patches 5 years, 8 months ago
Test docker-quick@centos7 failed
Test FreeBSD failed
Test docker-mingw@fedora failed
Test checkpatch failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1582688142-113997-1-git-send-email-robert.hu@linux.intel.com
There is a newer version of this series
configure            | 41 +++++++++++++++++++++++++++++++++
include/qemu/cpuid.h |  3 +++
util/bufferiszero.c  | 64 ++++++++++++++++++++++++++++++++++++++++++++--------
3 files changed, 99 insertions(+), 9 deletions(-)
[PATCH v2 0/2] Add AVX512F optimization option and buffer_zero_avx512()
Posted by Robert Hoo 5 years, 8 months ago
1) Introduce {enable,disable}-avx512f configure option

2) Implement new buffer_zero_avx512() with AVX512F instructions

Changes in v2:
1. Fixes wrong definition of CACHE_SSE2 in v1.
2. Fixes not handle <256 length case in buffer_zero_avx512() implementaion.
(Follow Richard's suggestion: handle the case in select_accel_fn(), and have a
global variable alongside buffer_accel)
3. Changes avx512f configuration option's default status to disabled.
4. Ran 'make check-unit' on this patch, on both a Ivybridge machine and a
CascadeLake machine.

Robert Hoo (2):
  configure: add configure option avx512f_opt
  util: add util function buffer_zero_avx512()

 configure            | 41 +++++++++++++++++++++++++++++++++
 include/qemu/cpuid.h |  3 +++
 util/bufferiszero.c  | 64 ++++++++++++++++++++++++++++++++++++++++++++--------
 3 files changed, 99 insertions(+), 9 deletions(-)

-- 
1.8.3.1