From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iptue-00087c-0L for qemu-devel@nongnu.org; Wed, 07 Nov 2007 18:02:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iptuc-000856-7B for qemu-devel@nongnu.org; Wed, 07 Nov 2007 18:02:19 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iptuc-00084p-4O for qemu-devel@nongnu.org; Wed, 07 Nov 2007 18:02:18 -0500 Received: from ranger.systems.pipex.net ([62.241.162.32]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iptub-00045r-Bt for qemu-devel@nongnu.org; Wed, 07 Nov 2007 18:02:17 -0500 Received: from nowt.org (81-179-181-133.dsl.pipex.com [81.179.181.133]) by ranger.systems.pipex.net (Postfix) with ESMTP id 6D7DEE000840 for ; Wed, 7 Nov 2007 23:02:15 +0000 (GMT) Received: from wren.home (wren.home [192.168.1.7]) by nowt.org (Postfix) with ESMTP id 8A1494E6E4 for ; Wed, 7 Nov 2007 23:02:14 +0000 (GMT) From: Paul Brook Subject: Re: [Qemu-devel] RFC: x86_64 Best way to fix 'cast to pointer from integer of different size' problems? References: <1194110810.13889.25.camel@hephaestion> <1194314417.5154.176.camel@phantasm.home.enterpriseandprosperity.com> <47320F6E.5060505@bellard.org> In-Reply-To: <47320F6E.5060505@bellard.org> MIME-Version: 1.0 Content-Disposition: inline Date: Wed, 7 Nov 2007 23:02:13 +0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200711072302.13606.paul@nowt.org> 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 > - Modify lock_user() so that it automatically does access_ok() and > returns NULL if access_ok() fails. You'll also need to augment all lock_user calls to indicate whether the buffer needs to be writable. Currently this information is not available until unlock_user is called. Paul