From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1kvS-0005qT-1d for qemu-devel@nongnu.org; Fri, 22 Jun 2007 11:19:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1kvP-0005pb-Sy for qemu-devel@nongnu.org; Fri, 22 Jun 2007 11:19:53 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1kvP-0005pW-JI for qemu-devel@nongnu.org; Fri, 22 Jun 2007 11:19:51 -0400 Received: from ns.suse.de ([195.135.220.2] helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I1kvO-0001eO-Vm for qemu-devel@nongnu.org; Fri, 22 Jun 2007 11:19:51 -0400 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 7C6661231F for ; Fri, 22 Jun 2007 17:19:47 +0200 (CEST) Message-ID: <467BE8EA.7070705@suse.de> Date: Fri, 22 Jun 2007 17:21:14 +0200 From: Alexander Graf MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] shm problem 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 Hi, when using mmap with qemu-i386 on x86_64 it's quite simple to get 32-bit pointers back (using the MAP_32BIT flag, thanks to Kirill for the patch). I'm currently in the need for shared memory though, so I need shmat() to return something within the lower 31 Bits as well. shmget(0x56a4d5, 488, IPC_CREAT|0660) = 11075627 shmat(11075627, 0, 0) = 0x2b4ceb29e000 Does anyone have an idea how to get around this and force shmat to return something a 32-bit target can handle? In the end it only calls mmap too... Thanks, Alex