From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IpUg9-0001R1-UB for qemu-devel@nongnu.org; Tue, 06 Nov 2007 15:05:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IpUg8-0001Qk-IL for qemu-devel@nongnu.org; Tue, 06 Nov 2007 15:05:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpUg8-0001Qh-9r for qemu-devel@nongnu.org; Tue, 06 Nov 2007 15:05:40 -0500 Received: from sp604002mt.neufgp.fr ([84.96.92.61] helo=sMtp.neuf.fr) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IpUg7-0005Tc-RM for qemu-devel@nongnu.org; Tue, 06 Nov 2007 15:05:39 -0500 Received: from [86.73.70.236] by sp604002mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-5.05 (built Feb 16 2006)) with ESMTP id <0JR300614P4Y3E80@sp604002mt.gpm.neuf.ld> for qemu-devel@nongnu.org; Tue, 06 Nov 2007 21:05:25 +0100 (CET) Date: Tue, 06 Nov 2007 21:05:00 +0100 From: Fabrice Bellard Subject: Re: [Qemu-devel] RFC: x86_64 Best way to fix 'cast to pointer from integer of different size' problems? In-reply-to: <200711060105.04529.paul@codesourcery.com> Message-id: <4730C8EC.8030808@bellard.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <1194110810.13889.25.camel@hephaestion> <200711031752.20135.paul@codesourcery.com> <1194292268.5154.73.camel@phantasm.home.enterpriseandprosperity.com> <200711060105.04529.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 Paul Brook wrote: > [...] > Personally I like the locking interface as it allows a zero-copy > implementation. However the kernel uses a copying interface, and my > understanding is that other qemu maintainers also prefer the copying > interface. At least I don't think it is critical performance wise, especially if the page flag checks are added ! Before you added the current zero copy interface, my plan was to use a zero copy interface just for big buffers such as the one for read/write. Another point is that the code from signal.c is not converted to the zero-copy interface and it is a significant source of complexity as there is a large amount of target specific code copied from the Linux kernel to generate the stack frame. Regards, Fabrice.