From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj33G-0005BU-Du for qemu-devel@nongnu.org; Thu, 24 Mar 2016 07:03:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aj33D-00055R-8o for qemu-devel@nongnu.org; Thu, 24 Mar 2016 07:03:42 -0400 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]:35573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aj33D-00055N-2O for qemu-devel@nongnu.org; Thu, 24 Mar 2016 07:03:39 -0400 Received: by mail-wm0-x241.google.com with SMTP id s187so1591132wme.2 for ; Thu, 24 Mar 2016 04:03:38 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 24 Mar 2016 12:03:33 +0100 Message-Id: <1458817415-29247-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] memory: cleanup users of memory_region_get_ram_addr List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: arei.gonglei@huawei.com, famz@redhat.com, mst@redhat.com The result of memory_region_get_ram_addr is often added in the caller of qemu_get_ram_ptr and then subtracted in qemu_get_ram_ptr; avoid the indirection. Prompted by mst's remark on confusion between hwaddr and ram_addr_t. Paolo Paolo Bonzini (2): memory: remove unnecessary masking of MemoryRegion ram_addr memory: hide ram_addr_t from qemu_get_ram_ptr users exec.c | 49 +++++++++++++++----------------------------- include/exec/memory.h | 1 - memory.c | 7 +++---- migration/savevm.c | 4 ++-- scripts/dump-guest-memory.py | 19 +++-------------- translate-all.c | 3 +-- 6 files changed, 25 insertions(+), 58 deletions(-) -- 1.8.3.1