From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J1vgW-0002Ua-Hd for qemu-devel@nongnu.org; Mon, 10 Dec 2007 22:21:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J1vgV-0002T8-2E for qemu-devel@nongnu.org; Mon, 10 Dec 2007 22:21:28 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1vgU-0002Sk-L9 for qemu-devel@nongnu.org; Mon, 10 Dec 2007 22:21:26 -0500 Received: from wr-out-0506.google.com ([64.233.184.230]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J1vgU-00030a-E9 for qemu-devel@nongnu.org; Mon, 10 Dec 2007 22:21:26 -0500 Received: by wr-out-0506.google.com with SMTP id c37so6132274wra for ; Mon, 10 Dec 2007 19:21:25 -0800 (PST) Message-ID: Date: Tue, 11 Dec 2007 12:21:25 +0900 From: "Magnus Damm" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: [Qemu-devel] Re: [PATCH] mark host pages as reserved 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 everyone, On Dec 5, 2007 5:45 PM, Magnus Damm wrote: > Hi all, > > This patch teaches the user space emulator about host pages. It marks > present host page mappings with PAGE_RESERVED so mmap_find_vma() > properly can detect that pages at mmap_next_start should be skipped > over instead of being overwritten using mmap(). Without this patch I > experience crashes with the arm or sh4 user space emulator together > with sbox2. This combination sometimes result in that host libraries > are mapped into the qemu process space starting from 0x4xxxxxxx > instead of 0xb7xxxxxx. This together with the initial value of > mmap_next_start results in a segfault when the elf loader overwrites > the mapped host libraries with the target binary. > > Comments anyone? Any reason for not applying this patch? This fixes user space emulation for all targets. Thanks, / magnus