From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUgsv-0006xQ-3Y for qemu-devel@nongnu.org; Tue, 23 Apr 2013 13:20:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUgsq-0004dd-A2 for qemu-devel@nongnu.org; Tue, 23 Apr 2013 13:20:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUgnc-0002Xf-4C for qemu-devel@nongnu.org; Tue, 23 Apr 2013 13:14:36 -0400 Message-ID: <5176C15E.9050106@redhat.com> Date: Tue, 23 Apr 2013 19:14:06 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1366705795-24732-1-git-send-email-imammedo@redhat.com> <1366705795-24732-18-git-send-email-imammedo@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 17/21] introduce memory_region_get_address() and use it in kvm/ioapic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: gleb@redhat.com, mst@redhat.com, jan.kiszka@siemens.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, blauwirbel@gmail.com, kraxel@redhat.com, quintela@redhat.com, armbru@redhat.com, yang.z.zhang@intel.com, ehabkost@redhat.com, stefano.stabellini@eu.citrix.com, aderumier@odiso.com, anthony.perard@citrix.com, alex.williamson@redhat.com, rth@twiddle.net, kwolf@redhat.com, aliguori@us.ibm.com, claudio.fontana@huawei.com, Igor Mammedov , afaerber@suse.de Il 23/04/2013 19:06, Peter Maydell ha scritto: >> > /* >> > + * memory_region_get_address: get current the address of a region >> > + * >> > + * Returns the absolute address of a region. >> > + * May be used on regions that are currently part of a memory hierarchy. >> > + * >> > + * @mr: the region being queried >> > + */ >> > +hwaddr memory_region_get_address(MemoryRegion *mr); > This doesn't make sense as a memory API in my opinion. There's > no such thing as the "absolute address of a MemoryRegion". What about also passing an AddressSpace and stopping at the address space's root? Would that make more sense? Paolo