From: Christoph Egger <Christoph.Egger@amd.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] use mmap to allocate execute memory
Date: Mon, 25 Jul 2011 11:05:59 +0200 [thread overview]
Message-ID: <4E2D31F7.70607@amd.com> (raw)
In-Reply-To: <4E2AF422.5050902@codemonkey.ws>
[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]
On 07/23/11 18:17, Anthony Liguori wrote:
> On 06/17/2011 05:11 AM, Christoph Egger wrote:
>>
>> Use mmap to allocate executable memory on NetBSD as well.
>>
>> From: Tobias Nygren<tnn@netbsd.org>
>> Signed-off-by: Christoph Egger<Christoph.Egger@amd.com>
>>
>> diff --git a/exec.c b/exec.c
>> index 09928a3..1954a1c 100644
>> --- a/exec.c
>> +++ b/exec.c
>> @@ -520,7 +520,8 @@ static void code_gen_alloc(unsigned long tb_size)
>> }
>> }
>> #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
>> - || defined(__DragonFly__) || defined(__OpenBSD__)
>
> Your mailer munged this patch.
... or by the MS Exchange Server.
Resending the patch as attachment, the only one
way I have that works for everyone. Sorry.
Use mmap to allocate executable memory on NetBSD as well.
From: Tobias Nygren <tnn@netbsd.org>
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
[-- Attachment #2: qemu_exec.diff --]
[-- Type: text/plain, Size: 429 bytes --]
diff --git a/exec.c b/exec.c
index 09928a3..1954a1c 100644
--- a/exec.c
+++ b/exec.c
@@ -520,7 +520,8 @@ static void code_gen_alloc(unsigned long tb_size)
}
}
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
- || defined(__DragonFly__) || defined(__OpenBSD__)
+ || defined(__DragonFly__) || defined(__OpenBSD__) \
+ || defined(__NetBSD__)
{
int flags;
void *addr = NULL;
next prev parent reply other threads:[~2011-07-25 9:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-17 10:11 [Qemu-devel] [PATCH] use mmap to allocate execute memory Christoph Egger
2011-07-23 16:17 ` Anthony Liguori
2011-07-25 9:05 ` Christoph Egger [this message]
2011-08-07 9:58 ` 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=4E2D31F7.70607@amd.com \
--to=christoph.egger@amd.com \
--cc=anthony@codemonkey.ws \
--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).