From: Peter Maydell <peter.maydell@linaro.org>
To: Antonio Groza <antoniogroza@gmail.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Emulation without RWX
Date: Tue, 13 Jun 2017 13:44:11 +0100 [thread overview]
Message-ID: <CAFEAcA-7MMVi-ubFGi9882WMgYUWMcbLiF9MVOT+cg-1A20cgA@mail.gmail.com> (raw)
In-Reply-To: <CABUdOL7gP=h8deWfuxz01eER2DkUFkFLZSdQcGhDJFzcmzGyZw@mail.gmail.com>
On 13 June 2017 at 12:54, Antonio Groza <antoniogroza@gmail.com> wrote:
> Hello, i am trying to emulate x86 on a platform that won't allow me to map
> memory pages as RWX(Apple's iOS) and i was wondering if there was any way
> of running qemu without doing that. I've had a brief look at your
> documentation and it looks like you are transpiling between 2 different
> instruction sets and i don't know how that would be possible without a rwx
> page.
It's certainly possible in theory -- you'd just need to be more
careful than we are currently about mapping the memory RW when
writing or patching code and then R-X when executing. (Now we're
multithreaded this is probably trickier than when we only had
a single thread, though.) But we don't do it currently and it
would require (possibly complicated) code changes to do it.
thanks
-- PMM
next prev parent reply other threads:[~2017-06-13 12:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-13 11:54 [Qemu-devel] Emulation without RWX Antonio Groza
2017-06-13 12:44 ` Peter Maydell [this message]
2017-06-13 13:23 ` Kamil Rytarowski
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=CAFEAcA-7MMVi-ubFGi9882WMgYUWMcbLiF9MVOT+cg-1A20cgA@mail.gmail.com \
--to=peter.maydell@linaro.org \
--cc=antoniogroza@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).