From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4hn6-0001Dc-QE for qemu-devel@nongnu.org; Fri, 06 Jun 2008 15:40:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4hn5-0001DD-Eu for qemu-devel@nongnu.org; Fri, 06 Jun 2008 15:39:59 -0400 Received: from [199.232.76.173] (port=34849 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4hn5-0001Cu-6o for qemu-devel@nongnu.org; Fri, 06 Jun 2008 15:39:59 -0400 Received: from gw.sandvine.com ([199.243.201.138]:56850) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4hn4-0007cX-Rh for qemu-devel@nongnu.org; Fri, 06 Jun 2008 15:39:59 -0400 Date: Fri, 6 Jun 2008 15:39:56 -0400 From: Ed Maste Subject: Re: [Qemu-devel] osdep.c patch (FreeBSD hosts) Message-ID: <20080606193956.GA25591@sandvine.com> References: <20080529214007.GA26341@saturn.kn-bremen.de> <483F2617.7020900@bellard.org> <20080529225713.GA28563@saturn.kn-bremen.de> <20080529230305.GA28979@saturn.kn-bremen.de> <20080601131507.GA73766@saturn.kn-bremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080601131507.GA73766@saturn.kn-bremen.de> 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 On Sun, Jun 01, 2008 at 03:15:07PM +0200, Juergen Lock wrote: > > ..and I just checked the manpage, our malloc page-aligns too (for sizes >= > > pagesize), so at least that shouldn't be an issue. We also have posix_memalign available on FreeBSD for guaranteed alignment. I think this file should be able to be simplified greatly -- perhaps all of the current kqemu_vmalloc should be moved into an #ifdef LINUX (or whatever the #define is) and other systems can use plain old posix_memalign/memalign/etc. - Ed