From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IzyI7-00029w-Qz for qemu-devel@nongnu.org; Wed, 05 Dec 2007 12:44:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IzyI6-000262-4j for qemu-devel@nongnu.org; Wed, 05 Dec 2007 12:44:11 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IzyI6-00025q-16 for qemu-devel@nongnu.org; Wed, 05 Dec 2007 12:44:10 -0500 Received: from mail.codesourcery.com ([65.74.133.4]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IzyI5-0007NP-KR for qemu-devel@nongnu.org; Wed, 05 Dec 2007 12:44:09 -0500 From: Paul Brook Subject: Re: [Qemu-devel] Re: [PATCH 2/3] virtio network device Date: Wed, 5 Dec 2007 17:44:02 +0000 References: <4755CC8C.6000001@us.ibm.com> <4755E774.8090408@qumranet.com> <4756DD7A.8070008@us.ibm.com> In-Reply-To: <4756DD7A.8070008@us.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712051744.03916.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 Cc: Anthony Liguori , Rusty Russell > > Actually according to qemu's standard, one should use > > cpu_physical_memory_write/ cpu_physical_memory_read functions. > > This is true also for reading the ring values. > > Yes, and unfortunately, cpu_physical_memory_{read,write} are copy > interfaces. We really don't want that for high speed I/O. I really don't like doing direct access to guest ram without implementing a proper API for zero-copy/scatter-gather access. There was a list thread about this not so long ago. Paul