Received: from eggs.gnu.org ([2001:4830:134:3::10]:50682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bccIZ-0008A3-8N for qemu-devel@nongnu.org; Wed, 24 Aug 2016 13:49:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bccIV-0008JJ-VX for qemu-devel@nongnu.org; Wed, 24 Aug 2016 13:49:11 -0400 Received: from mail-yw0-x244.google.com ([2607:f8b0:4002:c05::244]:34751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bccIV-0008JF-Q7 for qemu-devel@nongnu.org; Wed, 24 Aug 2016 13:49:07 -0400 Received: by mail-yw0-x244.google.com with SMTP id j12so1142279ywb.1 for ; Wed, 24 Aug 2016 10:49:07 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Wed, 24 Aug 2016 10:48:27 -0700 Message-Id: <1472060915-6011-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH v2 0/8] Improve buffer_is_zero List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, peter.maydell@linaro.org Patches 1-4 remove the use of ifunc from the implementation. Patch 6 adjusts the x86 implementation a bit more to take advantage of ptest (in sse4.1) and unaligned accesses (in avx1). Patches 3 and 7 are the result of my conversation with Vijaya Kumar with respect to ThunderX. Patch 8 is the result of seeing some really really horrible code produced for ppc64le (gcc 4.9 and mainline). This has had limited testing. What I don't know is the best way to benchmark this -- the only way I know to trigger this is via the console, by hand, which doesn't make for reasonable timing. Changes v1-v2: * Add patch 1, moving everything to a new file. * Fix a typo or two, which had the wrong sense of zero test. These had mostly beed fixed in the intermediate patches, but it wouldn't have helped bisection. r~ Richard Henderson (8): 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: Add generic prefetch cutils: Rewrite x86 buffer zero checking cutils: Rewrite aarch64 buffer zero checking cutils: Rewrite ppc buffer zero checking configure | 21 +-- include/qemu/cutils.h | 2 - migration/ram.c | 2 +- migration/rdma.c | 5 +- util/Makefile.objs | 1 + util/bufferiszero.c | 432 ++++++++++++++++++++++++++++++++++++++++++++++++++ util/cutils.c | 244 ---------------------------- 7 files changed, 441 insertions(+), 266 deletions(-) create mode 100644 util/bufferiszero.c -- 2.7.4