From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXVPd-0000Ho-RD for qemu-devel@nongnu.org; Mon, 05 Dec 2011 05:04:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXVPa-0005kK-0B for qemu-devel@nongnu.org; Mon, 05 Dec 2011 05:04:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXVPZ-0005kG-O9 for qemu-devel@nongnu.org; Mon, 05 Dec 2011 05:04:37 -0500 Message-ID: <4EDC9732.1070102@redhat.com> Date: Mon, 05 Dec 2011 12:04:34 +0200 From: Avi Kivity MIME-Version: 1.0 References: <1323022181-28110-1-git-send-email-avi@redhat.com> <1323022181-28110-4-git-send-email-avi@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 3/6] memory: introduce memory_region_set_alias_offset() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org On 12/04/2011 11:34 PM, Blue Swirl wrote: > On Sun, Dec 4, 2011 at 18:09, Avi Kivity wrote: > > Add an API to update an alias offset of an active alias. This can be > > used to simplify implementation of dynamic memory banks. > > > > */ > > -void memory_region_set_address(MemoryRegion *mr, target_phys_addr_t addr); > > +void memory_region_set_address(MemoryRegion *mr, target_phys_addr_t offset); > > This isn't the function you are looking for, but still 'addr' is > changed to 'offset'. > > > + > > +/* > > + * memory_region_set_alias_offset: dynamically update a memory alias's offset > > + * > > + * Dynamically updates the offset into the target region that an alias points > > + * to, as if the fourth argument to memory_region_init_alias() has changed. > > + * > > + * @mr: the #MemoryRegion to be updated; should be an alias. > > + * @offset: the new offset into the target memory region > > + */ > > +void memory_region_set_alias_offset(MemoryRegion *mr, target_phys_addr_t addr); > > Here 'addr' doesn't match the description above. Thanks, fixed. -- error compiling committee.c: too many arguments to function