From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQR8y-0000I1-M8 for qemu-devel@nongnu.org; Fri, 23 Jan 2009 13:52:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQR8x-0000Hi-4k for qemu-devel@nongnu.org; Fri, 23 Jan 2009 13:52:40 -0500 Received: from [199.232.76.173] (port=37662 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQR8x-0000Hf-1S for qemu-devel@nongnu.org; Fri, 23 Jan 2009 13:52:39 -0500 Received: from mx20.gnu.org ([199.232.41.8]:29325) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LQR8w-0000a4-On for qemu-devel@nongnu.org; Fri, 23 Jan 2009 13:52:38 -0500 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LQR8v-0006Y2-Qy for qemu-devel@nongnu.org; Fri, 23 Jan 2009 13:52:38 -0500 From: Paul Brook Subject: Re: [Qemu-devel] [6412] linux-user: add qemu_realloc() implementation to unbreak the build ( Gerd Hoffman) Date: Fri, 23 Jan 2009 18:52:34 +0000 References: <761ea48b0901230738j451cd69bqcf4d394950a99b52@mail.gmail.com> <4979F1E3.2050701@codemonkey.ws> In-Reply-To: <4979F1E3.2050701@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901231852.35416.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > > Is it really the correct fix? The original error comes from the fact > > we compile qemu_iovec_* in cutils.c. Do we really need these > > iovec functions for user-mode? > > I think the better question is, why isn't linux-user sharing > qemu_malloc/qemu_realloc implementations with the system emulation? Because userspace emulation has special requirements, and need to keep track of address space usage. You can't just blindly use malloc/mmap. Paul