From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaDiI-0007jl-Q8 for qemu-devel@nongnu.org; Sun, 28 Feb 2016 21:37:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaDiF-0007wH-KO for qemu-devel@nongnu.org; Sun, 28 Feb 2016 21:37:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaDiF-0007wD-Ej for qemu-devel@nongnu.org; Sun, 28 Feb 2016 21:37:31 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 51E0B7F08B for ; Mon, 29 Feb 2016 02:37:30 +0000 (UTC) From: Fam Zheng Date: Mon, 29 Feb 2016 10:37:17 +0800 Message-Id: <1456713443-16834-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH 0/6] memory: Clean up MemoryRegion.ram_addr and optimize address_space_translate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini The first four patches drop ram_addr from MemoryRegion on top of Gonglei's optimization. The next patch simplifies qemu_ram_free a bit by passing the RAMBlock pointer. The last patch speeds up address_space_translate with a cache pointer inside the AddressSpaceDispatch. Fam Zheng (6): exec: Return RAMBlock pointer from allocating functions memory: Move assignment to ram_block to memory_region_init_* memory: Implement memory_region_get_ram_addr with mr->ram_block memory: Drop MemoryRegion.ram_addr exec: Pass RAMBlock pointer to qemu_ram_free exec: Introduce AddressSpaceDispatch.mru_section cputlb.c | 4 +-- exec.c | 93 ++++++++++++++++++++++++------------------------- hw/misc/ivshmem.c | 9 +++-- include/exec/memory.h | 9 +---- include/exec/ram_addr.h | 24 ++++++------- kvm-all.c | 3 +- memory.c | 56 ++++++++++++++++------------- 7 files changed, 101 insertions(+), 97 deletions(-) -- 2.4.3