From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1erkce-0008CP-10 for qemu-devel@nongnu.org; Fri, 02 Mar 2018 08:21:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1erkcd-0006Sx-4C for qemu-devel@nongnu.org; Fri, 02 Mar 2018 08:21:15 -0500 Received: from mail-oi0-x241.google.com ([2607:f8b0:4003:c06::241]:42765) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1erkcc-0006SY-V8 for qemu-devel@nongnu.org; Fri, 02 Mar 2018 08:21:15 -0500 Received: by mail-oi0-x241.google.com with SMTP id c18so6989258oiy.9 for ; Fri, 02 Mar 2018 05:21:14 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20171228180814.9749-10-lukeshu@lukeshu.com> References: <20171228180814.9749-1-lukeshu@lukeshu.com> <20171228180814.9749-10-lukeshu@lukeshu.com> From: Peter Maydell Date: Fri, 2 Mar 2018 13:20:53 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [PATCH 09/10] linux-user: init_guest_space: Add a comment about search strategy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luke Shumaker Cc: QEMU Developers , Luke Shumaker , Riku Voipio , Laurent Vivier On 28 December 2017 at 18:08, Luke Shumaker wrote: > From: Luke Shumaker > > Signed-off-by: Luke Shumaker > --- > linux-user/elfload.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/linux-user/elfload.c b/linux-user/elfload.c > index 1b7583d659..7736ea2c3a 100644 > --- a/linux-user/elfload.c > +++ b/linux-user/elfload.c > @@ -1936,6 +1936,10 @@ unsigned long init_guest_space(unsigned long host_start, > * happen often. Probably means we got unlucky and host > * address space randomization put a shared library somewhere > * inconvenient. > + * > + * This is probably a good strategy if host_start, but is > + * probably a bad strategy if not, which means we got here > + * because of trouble with ARM commpage setup. > */ > munmap((void *)real_start, real_size); > current_start += qemu_host_page_size; > -- > 2.15.1 Reviewed-by: Peter Maydell thanks -- PMM