All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Mohring <martin.mohring@opensuse.org>
To: qemu-devel@nongnu.org
Cc: "Riku Voipio" <riku.voipio@iki.fi>,
	"Aurelien Jarno" <aurelien@aurel32.net>,
	"Jan-Simon Möller" <dl9pf@gmx.de>
Subject: Re: [Qemu-devel] qemu-arm fails on test-mmap
Date: Mon, 10 Aug 2009 10:33:42 +0200	[thread overview]
Message-ID: <4A7FDB66.2090506@opensuse.org> (raw)
In-Reply-To: <200908100409.04926.dl9pf@gmx.de>

Hi,

yesterday, we tracked down the problem to a kernel bug in this area:
http://bugzilla.kernel.org/attachment.cgi?id=17219 What do I want to say
with this: the user mode memory allocator does not work because it runs
into a kernel bug.

Kudos to Jan-Simon. Has anyone an idea how to handle such a case....
Patching the kernel is not the best idea. We will check which kernels
are affected.

Cheers, Martin

Jan-Simon Möller wrote:
> A quick hack around is this:
>
> diff --git a/linux-user/mmap.c b/linux-user/mmap.c
> index e05caa0..a04d6b1 100644
> --- a/linux-user/mmap.c
> +++ b/linux-user/mmap.c
> @@ -316,8 +316,14 @@ abi_ulong mmap_find_vma(abi_ulong start, abi_ulong size)
>          if (addr == addr_start)
>              return (abi_ulong)-1;
>      }
> -    if (start == 0)
> -        mmap_next_start = addr + size;
> +    if (start == 0) {
> +        abi_ulong mynext = addr + size ;
> +        if ( (mynext > 0x5f000000) && (mynext < 0x65000000) ) {
> +          mmap_next_start = 0x65000000 ;
> +        } else {
> +          mmap_next_start = addr + size;
> +        }
> +    }
>      return addr;
>  }
>
>
> But this is for sure not the real solution.
>
> Best,
> Jan-Simon
>
>
>   

  reply	other threads:[~2009-08-10  8:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-09 23:45 [Qemu-devel] qemu-arm fails on test-mmap - take #2 Jan-Simon Möller
2009-08-10  2:09 ` Jan-Simon Möller
2009-08-10  8:33   ` Martin Mohring [this message]
     [not found] ` <cc557aab0908092333n1e2b3aa3l2d703352297e83a6@mail.gmail.com>
2009-08-10 13:52   ` Jan-Simon Möller
  -- strict thread matches above, loose matches on Subject: below --
2009-07-31  1:34 [Qemu-devel] qemu-arm fails on test-mmap Jan-Simon Möller
2009-07-31  9:58 ` Laurent Desnogues
2009-07-31 11:28   ` Jan-Simon Möller
2009-07-31 11:36     ` Laurent Desnogues
2009-07-31 13:03   ` Jan-Simon Möller
2009-07-31 13:25     ` Jan-Simon Möller
2009-07-31 16:39   ` Jan-Simon Möller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A7FDB66.2090506@opensuse.org \
    --to=martin.mohring@opensuse.org \
    --cc=aurelien@aurel32.net \
    --cc=dl9pf@gmx.de \
    --cc=qemu-devel@nongnu.org \
    --cc=riku.voipio@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.