From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfvOp-0001hw-9I for qemu-devel@nongnu.org; Fri, 24 May 2013 13:03:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfvOj-0000zh-E0 for qemu-devel@nongnu.org; Fri, 24 May 2013 13:03:27 -0400 Received: from mail-ee0-f52.google.com ([74.125.83.52]:48085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfvOj-0000zT-8I for qemu-devel@nongnu.org; Fri, 24 May 2013 13:03:21 -0400 Received: by mail-ee0-f52.google.com with SMTP id c13so2751865eek.39 for ; Fri, 24 May 2013 10:03:20 -0700 (PDT) Received: from playground.lan (net-37-117-138-128.cust.dsl.vodafone.it. [37.117.138.128]) by mx.google.com with ESMTPSA id z52sm24872219eea.1.2013.05.24.10.03.18 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 24 May 2013 10:03:19 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 24 May 2013 19:02:55 +0200 Message-Id: <1369414987-8839-4-git-send-email-pbonzini@redhat.com> In-Reply-To: <1369414987-8839-1-git-send-email-pbonzini@redhat.com> References: <1369414987-8839-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 03/15] exec: make qemu_get_ram_ptr private List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org It is a private interface between exec.c and memory.c. Reviewed-by: Peter Maydell Signed-off-by: Paolo Bonzini --- include/exec/cpu-common.h | 2 -- include/exec/memory-internal.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h index cafc3c2..af851aa 100644 --- a/include/exec/cpu-common.h +++ b/include/exec/cpu-common.h @@ -49,8 +49,6 @@ typedef void CPUWriteMemoryFunc(void *opaque, hwaddr addr, uint32_t value); typedef uint32_t CPUReadMemoryFunc(void *opaque, hwaddr addr); void qemu_ram_remap(ram_addr_t addr, ram_addr_t length); -/* This should only be used for ram local to a device. */ -void *qemu_get_ram_ptr(ram_addr_t addr); /* This should not be used by devices. */ int qemu_ram_addr_from_host(void *ptr, ram_addr_t *ram_addr); ram_addr_t qemu_ram_addr_from_host_nofail(void *ptr); diff --git a/include/exec/memory-internal.h b/include/exec/memory-internal.h index 1b156fd..8d15f90 100644 --- a/include/exec/memory-internal.h +++ b/include/exec/memory-internal.h @@ -46,6 +46,7 @@ void address_space_destroy_dispatch(AddressSpace *as); ram_addr_t qemu_ram_alloc_from_ptr(ram_addr_t size, void *host, MemoryRegion *mr); ram_addr_t qemu_ram_alloc(ram_addr_t size, MemoryRegion *mr); +void *qemu_get_ram_ptr(ram_addr_t addr); void qemu_ram_free(ram_addr_t addr); void qemu_ram_free_from_ptr(ram_addr_t addr); -- 1.8.1.4