From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JyrRS-00022q-1k for qemu-devel@nongnu.org; Wed, 21 May 2008 12:45:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JyrRQ-0001za-Ft for qemu-devel@nongnu.org; Wed, 21 May 2008 12:45:29 -0400 Received: from [199.232.76.173] (port=57216 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JyrRQ-0001yz-9m for qemu-devel@nongnu.org; Wed, 21 May 2008 12:45:28 -0400 Received: from bzq-179-150-194.static.bezeqint.net ([212.179.150.194]:53900 helo=il.qumranet.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JyrRO-0001Nn-7n for qemu-devel@nongnu.org; Wed, 21 May 2008 12:45:26 -0400 Message-ID: <483451A4.80806@qumranet.com> Date: Wed, 21 May 2008 19:45:24 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH][v2] Align file accesses with cache=off (O_DIRECT) References: <200805210205.37432.paul@codesourcery.com> <4833778C.4030209@codemonkey.ws> <4833DC3F.8000604@suse.de> <20080521122629.GA14416@shareable.org> <48341783.3060204@qumranet.com> <20080521134154.GA15210@shareable.org> <483429EB.7070705@codemonkey.ws> <48342F05.2090603@qumranet.com> <48343106.4070801@codemonkey.ws> <48343844.1050107@qumranet.com> <20080521153454.GB20527@shareable.org> <48344793.2020902@codemonkey.ws> In-Reply-To: <48344793.2020902@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Cc: Blue Swirl , Laurent Vivier , Paul Brook Anthony Liguori wrote: > > Actually, this is precisely what I'd like to do. The key is to > mmap(MAP_PRIVATE) from the underling file directly into the guest's > memory. Should be just as applicable to QEMU as KVM (although for KVM > we need mmu-notifiers first). > mmap()ing a page at a time will generate a horribly long vma list. You need nonlinear mappings for this to be efficient. -- error compiling committee.c: too many arguments to function