From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9nCD-00035k-H3 for qemu-devel@nongnu.org; Mon, 08 Dec 2008 15:59:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9nCB-00034w-PA for qemu-devel@nongnu.org; Mon, 08 Dec 2008 15:59:13 -0500 Received: from [199.232.76.173] (port=46639 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9nCB-00034i-JU for qemu-devel@nongnu.org; Mon, 08 Dec 2008 15:59:11 -0500 Received: from moutng.kundenserver.de ([212.227.126.188]:50475) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L9nCA-0006DU-SY for qemu-devel@nongnu.org; Mon, 08 Dec 2008 15:59:11 -0500 Message-ID: <493D8A9B.4010205@opensuse.org> Date: Mon, 08 Dec 2008 21:59:07 +0100 From: Martin Mohring MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Rewrite mmap_find_vma() to work fine on 64-bit hosts with 32-bit targets References: <1228303789-25653-1-git-send-email-kirill@shutemov.name> <1228303789-25653-6-git-send-email-kirill@shutemov.name> <1228303789-25653-7-git-send-email-kirill@shutemov.name> <200812031234.18733.paul@codesourcery.com> <20081203125057.GA29192@epbyminw8406h.minsk.epam.com> <20081208204815.GA6724@epbyminw8406h.minsk.epam.com> In-Reply-To: <20081208204815.GA6724@epbyminw8406h.minsk.epam.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 Cc: Paul Brook Kirill A. Shutemov wrote: > On Wed, Dec 03, 2008 at 02:50:57PM +0200, Kirill A. Shutemov wrote: > >> On Wed, Dec 03, 2008 at 12:34:18PM +0000, Paul Brook wrote: >> >>> On Wednesday 03 December 2008, Kirill A. Shutemov wrote: >>> >>>> qemu's page table can be incomple if /proc/self/maps is unavailable or >>>> host allocating a memory with mmap(), so we can't use it to find free >>>> memory area. >>>> >>> Do we really care? Do such systems exist? >>> >> I use qemu-arm to build packages in restricted environment -- in hasher[1]. >> hasher mounts /proc only for packages that really need it for building >> (java, for example). >> >> [1] http://en.altlinux.org/Hasher >> > > Paul, do you have any objection or not? I really want to see it into > upstream. > > One question I have though... What happens, if a start up script (ini script) run in qemu linux-user changes /proc/sys/vm/mmap_min_addr from 0 to say 65536? Can this ever work, without later memory allocs with mmap() failing? Martin