qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Blue Swirl" <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [5979] Fix compiling without MREMAP_FIXED
Date: Fri, 12 Dec 2008 18:27:23 +0200	[thread overview]
Message-ID: <f43fc5580812120827o44d63c90u70ab6a789657312d@mail.gmail.com> (raw)
In-Reply-To: <20081211193349.GA9054@epbyminw8406h.minsk.epam.com>

On 12/11/08, Kirill A. Shutemov <kirill@shutemov.name> wrote:
> On Thu, Dec 11, 2008 at 07:12:26PM +0000, Blue Swirl wrote:
>  > Revision: 5979
>  >           http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5979
>  > Author:   blueswir1
>  > Date:     2008-12-11 19:12:25 +0000 (Thu, 11 Dec 2008)
>  >
>  > Log Message:
>  > -----------
>  > Fix compiling without MREMAP_FIXED
>  >
>  > Modified Paths:
>  > --------------
>  >     trunk/linux-user/mmap.c
>  >
>  > Modified: trunk/linux-user/mmap.c
>  > ===================================================================
>  > --- trunk/linux-user/mmap.c   2008-12-11 17:30:50 UTC (rev 5978)
>  > +++ trunk/linux-user/mmap.c   2008-12-11 19:12:25 UTC (rev 5979)
>  > @@ -546,6 +546,7 @@
>  >
>  >      mmap_lock();
>  >
>  > +#if defined(MREMAP_FIXED)
>  >      if (flags & MREMAP_FIXED)
>  >          host_addr = mremap(g2h(old_addr), old_size, new_size,
>  >                             flags, new_addr);
>  > @@ -560,7 +561,9 @@
>  >          } else
>  >              host_addr = mremap(g2h(old_addr), old_size, new_size,
>  >                                 flags | MREMAP_FIXED, g2h(mmap_start));
>  > -    } else {
>  > +    } else
>  > +#endif
>  > +    {
>  >          host_addr = mremap(g2h(old_addr), old_size, new_size, flags);
>  >          /* Check if address fits target address space */
>  >          if ((unsigned long)host_addr + new_size > (abi_ulong)-1) {
>
>
> I've posted patch that fix building for glibc < 2.4. Please apply my
>  patch instead of it.

Your fix depends on linux headers, is that safe?

  parent reply	other threads:[~2008-12-12 16:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-11 19:12 [Qemu-devel] [5979] Fix compiling without MREMAP_FIXED Blue Swirl
2008-12-11 19:33 ` Kirill A. Shutemov
2008-12-12 13:37   ` Kirill A. Shutemov
2008-12-12 16:27   ` Blue Swirl [this message]
2008-12-12 19:11     ` Kirill A. Shutemov
2008-12-14 17:43       ` Kirill A. Shutemov
2008-12-15 18:06         ` Blue Swirl

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=f43fc5580812120827o44d63c90u70ab6a789657312d@mail.gmail.com \
    --to=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).