Some reorganization of Richard's patches that helped me find the problem with the AVX version.
The new patch is an adaptation of the SSE4 version using ptest, before the final rewrite that includes unaligned buffer support. Paolo Paolo Bonzini (1): cutils: Add SSE4 version Richard Henderson (9): cutils: Move buffer_is_zero and subroutines to a new file cutils: Remove SPLAT macro cutils: Export only buffer_is_zero cutils: Rearrange buffer_is_zero acceleration cutils: Remove aarch64 buffer zero checking cutils: Remove ppc buffer zero checking cutils: Add test for buffer_is_zero cutils: Add generic prefetch cutils: Rewrite x86 buffer zero checking configure | 21 +--- include/qemu/cutils.h | 3 +- migration/ram.c | 2 +- migration/rdma.c | 5 +- tests/Makefile.include | 3 + tests/test-bufferiszero.c | 78 +++++++++++++ util/Makefile.objs | 1 + util/bufferiszero.c | 274 ++++++++++++++++++++++++++++++++++++++++++++++ util/cutils.c | 244 ----------------------------------------- 9 files changed, 365 insertions(+), 266 deletions(-) create mode 100644 tests/test-bufferiszero.c create mode 100644 util/bufferiszero.c -- 1.8.3.1