From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QghnX-00061t-IH for qemu-devel@nongnu.org; Tue, 12 Jul 2011 14:35:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QghnT-0006kf-SU for qemu-devel@nongnu.org; Tue, 12 Jul 2011 14:35:06 -0400 Received: from mail-vx0-f173.google.com ([209.85.220.173]:40791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QghnT-0006jK-Cn for qemu-devel@nongnu.org; Tue, 12 Jul 2011 14:35:03 -0400 Received: by vxc11 with SMTP id 11so4323053vxc.4 for ; Tue, 12 Jul 2011 11:35:01 -0700 (PDT) Sender: Richard Henderson Message-ID: <4E1C93D1.8030409@twiddle.net> Date: Tue, 12 Jul 2011 11:34:57 -0700 From: Richard Henderson MIME-Version: 1.0 References: <8AA1C177-82E3-4783-96C6-A3728A097872@suse.de> In-Reply-To: <8AA1C177-82E3-4783-96C6-A3728A097872@suse.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Loading ELF binaries with very high base addresses List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Prashant Vaibhav Cc: Alexander Graf , "qemu-devel@nongnu.org" On 07/12/2011 09:43 AM, Alexander Graf wrote: > For now, just force the mapping to somewhere mappable :) Unfortunately, I can tell you that there is no such place. The text segment is mapped by default at 0x4000000000000000 and the data segment is by default mapped at 0x6000000000000000. If you set guest_base = 0xc000000000000000, which remaps the text segment to 0, then the data segment will still be at 0x2000000000000000, which x86_64 still cannot represent. If you hack the address mapping routines to simply drop the high bits, then the text and data segments will map on top of one another. You can well imagine how well that will work. The *only* way to solve this is with softmmu. r~