Received: from eggs.gnu.org ([2001:4830:134:3::10]:42440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a99oX-00050k-4w for qemu-devel@nongnu.org; Wed, 16 Dec 2015 06:00:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a99oU-0003Vc-0Y for qemu-devel@nongnu.org; Wed, 16 Dec 2015 06:00:09 -0500 Received: from mail-wm0-x231.google.com ([2a00:1450:400c:c09::231]:33199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a99oT-0003UY-Qp for qemu-devel@nongnu.org; Wed, 16 Dec 2015 06:00:05 -0500 Received: by mail-wm0-x231.google.com with SMTP id n186so135587371wmn.0 for ; Wed, 16 Dec 2015 03:00:05 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 16 Dec 2015 11:59:52 +0100 Message-Id: <1450263601-2828-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/8] Optimize address_space_read/write/map List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: v.maffione@gmail.com Avoid unnecessary object_ref/unref and rcu_read_lock/unlock. Inline constant-length reads to avoid variable-sized memcpy. Paolo Paolo Bonzini (8): exec: always call qemu_get_ram_ptr within rcu_read_lock exec: make qemu_ram_ptr_length more similar to qemu_get_ram_ptr memory: reorder MemoryRegion fields memory: avoid unnecessary object_ref/unref memory: split address_space_read and address_space_write memory: extract first iteration of address_space_read and address_space_write memory: inline a few small accessors memory: try to inline constant-length reads exec.c | 334 +++++++++++++++++++++++++++--------------------- include/exec/memory.h | 136 +++++++++++++++----- include/exec/ram_addr.h | 1 - memory.c | 62 ++++----- 4 files changed, 315 insertions(+), 218 deletions(-) -- 2.5.0