All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] use mmap to allocate execute memory
@ 2011-06-17 10:11 Christoph Egger
  2011-07-23 16:17 ` Anthony Liguori
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Egger @ 2011-06-17 10:11 UTC (permalink / raw)
  To: qemu-devel


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__)
+    || defined(__DragonFly__) || defined(__OpenBSD__) \
+    || defined(__NetBSD__)
      {
          int flags;
          void *addr = NULL;


-- 
---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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] use mmap to allocate execute memory
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Anthony Liguori @ 2011-07-23 16:17 UTC (permalink / raw)
  To: Christoph Egger; +Cc: qemu-devel

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.

Regards,

Anthony Liguori

> + || defined(__DragonFly__) || defined(__OpenBSD__) \
> + || defined(__NetBSD__)
> {
> int flags;
> void *addr = NULL;
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] use mmap to allocate execute memory
  2011-07-23 16:17 ` Anthony Liguori
@ 2011-07-25  9:05   ` Christoph Egger
  2011-08-07  9:58     ` Blue Swirl
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Egger @ 2011-07-25  9:05 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel

[-- 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;

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] use mmap to allocate execute memory
  2011-07-25  9:05   ` Christoph Egger
@ 2011-08-07  9:58     ` Blue Swirl
  0 siblings, 0 replies; 4+ messages in thread
From: Blue Swirl @ 2011-08-07  9:58 UTC (permalink / raw)
  To: Christoph Egger; +Cc: qemu-devel

Thanks, applied.

On Mon, Jul 25, 2011 at 9:05 AM, Christoph Egger
<Christoph.Egger@amd.com> wrote:
> 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
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-07  9:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2011-08-07  9:58     ` Blue Swirl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.