From: Fabrice Bellard <fabrice@bellard.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: [PATCH] mark host pages as reserved
Date: Tue, 11 Dec 2007 10:14:49 +0100 [thread overview]
Message-ID: <475E5509.4060208@bellard.org> (raw)
In-Reply-To: <aec7e5c30712101921lb863972ld1af1a01ed5d9eef@mail.gmail.com>
Magnus Damm wrote:
> Hi everyone,
>
> On Dec 5, 2007 5:45 PM, Magnus Damm <magnus.damm@gmail.com> 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.
It seems OK.
Fabrice.
prev parent reply other threads:[~2007-12-11 9:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-05 8:45 [Qemu-devel] [PATCH] mark host pages as reserved Magnus Damm
2007-12-11 3:21 ` [Qemu-devel] " Magnus Damm
2007-12-11 9:14 ` Fabrice Bellard [this message]
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=475E5509.4060208@bellard.org \
--to=fabrice@bellard.org \
--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).