[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 11/13] tests/vm: netbsd autoinstall, using seria

From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 11/13] tests/vm: netbsd autoinstall, using serial console
Date: Thu, 9 May 2019 08:47:16 +0200
User-agent: NeoMutt/20180716


> I recommend to add one extra step into generated image:
> echo security.pax.mprotect.enabled=0 >> /etc/sysctl.conf


> Alternatively (and preferably) enhance qemu to handle RWX allocation for
> JIT on NetBSD.
> Example in libffi.
> https://github.com/libffi/libffi/commit/2bfcd29955c02b67fa10a68cc4200f6838181e0f

So, from looking at the patch it seems you need two mappings of the same
page, one writable and one executable.

Or, maybe it is also possible with one mapping which is writable first
when you fill it with code, then gets flipped over to executable when
you are done with the initialization and want use it.

Is that correct?

I suspect supporting that in tcg isn't exactly trivial.
Does OpenBSD work the same way btw?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]