From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LaYxM-0007w0-42 for qemu-devel@nongnu.org; Fri, 20 Feb 2009 12:14:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LaYxJ-0007vQ-IQ for qemu-devel@nongnu.org; Fri, 20 Feb 2009 12:14:31 -0500 Received: from [199.232.76.173] (port=59440 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaYxJ-0007vN-Aq for qemu-devel@nongnu.org; Fri, 20 Feb 2009 12:14:29 -0500 Received: from main.gmane.org ([80.91.229.2]:35134 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LaYxJ-0003Q7-3B for qemu-devel@nongnu.org; Fri, 20 Feb 2009 12:14:29 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LaYxI-0001EO-Jg for qemu-devel@nongnu.org; Fri, 20 Feb 2009 17:14:28 +0000 Received: from 204.147.152.1 ([204.147.152.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Feb 2009 17:14:28 +0000 Received: from void by 204.147.152.1 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Feb 2009 17:14:28 +0000 From: Consul Date: Fri, 20 Feb 2009 09:14:15 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: Sender: news Subject: [Qemu-devel] Re: [PATCH] SIGSEGV when USE_KQEMU is defined 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 Consul wrote: > Signed-off-by: Alex Ivanov > > $ svn diff > Index: block.c > =================================================================== > --- block.c (revision 6628) > +++ block.c (working copy) > @@ -1263,7 +1263,7 @@ > if (!s->is_write) { > qemu_iovec_from_buffer(s->iov, s->bounce, s->iov->size); > } > - qemu_free(s->bounce); > + qemu_vfree(s->bounce); > s->this_aiocb->cb(s->this_aiocb->opaque, ret); > qemu_aio_release(s->this_aiocb); > } > On Windows s->bounce = qemu_memalign(512, nb_sectors * 512); translates to VirtualAlloc and should be freed with VirtualFree (what qemu_vfree does).