From: Jussi Hakala <jussi.hakala@hut.fi>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Qemu and mmap_min_addr
Date: Fri, 02 May 2008 12:59:43 +0300 [thread overview]
Message-ID: <481AE60F.2010109@hut.fi> (raw)
In-Reply-To: <481874A7.7000704@hut.fi>
Celebrated too early.
My initial tests without the patch gave permission denied, and with the
patch an error as expected (lenny's qemu not being able to run binaries
generated by the cs2008q1 compiler).
Added some patches from [1], and tried running the hello world
application again but with the GUEST_BASE being different from 0, the
qemu seems just to hang when trying to mmap. CPU load is ~ 1.0 but
nothing happens after mmap2() call [2].
Without the GUEST_BASE modification (and with a reasonably low
mmap_min_addr), the binaries run just fine.
Regards,
Jussi
[1]
http://qemu-arm-eabi.wiki.sourceforge.net/
[2]
mmap2(0x91000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x91000
Jussi Hakala wrote:
> Paul Brook wrote:
>> You have to use a nonzero GUEST_BASE to offset the guest VM. However
>> this hasn't been tested in a while, and has probably bitrotted.
>
> For preliminary testing, setting GUEST_BASE to 65536 seemed to work.
> I'll investigate further and report back to you :)
next prev parent reply other threads:[~2008-05-02 9:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-30 11:43 [Qemu-devel] Qemu and mmap_min_addr Jussi Hakala
2008-04-30 12:31 ` Paul Brook
2008-04-30 13:31 ` Jussi Hakala
2008-05-02 9:59 ` Jussi Hakala [this message]
2008-05-02 14:51 ` Richard Purdie
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=481AE60F.2010109@hut.fi \
--to=jussi.hakala@hut.fi \
--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).