On 09.05.2019 18:39, Richard Henderson wrote:
> On 5/8/19 11:47 PM, Gerd Hoffmann wrote:
>> 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 fil
On 09.05.2019 08:47, Gerd Hoffmann wrote:
> Hi,
>
>> I recommend to add one extra step into generated image:
>>
>> echo security.pax.mprotect.enabled=0 >> /etc/sysctl.conf
>
> Done.
>
Thanks! Once there will be PaX MPROTECT support in qemu, we can and
should drop it.
>> Alternatively (and pr
On 5/8/19 11:47 PM, Gerd Hoffmann wrote:
> 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
Hi,
> I recommend to add one extra step into generated image:
>
> echo security.pax.mprotect.enabled=0 >> /etc/sysctl.conf
Done.
> Alternatively (and preferably) enhance qemu to handle RWX allocation for
> JIT on NetBSD.
>
> Example in libffi.
>
> https://github.com/libffi/libffi/commit/2bf
On 08.05.2019 10:56, Gerd Hoffmann wrote:
> Instead of fetching the prebuilt image from patchew download the install
> iso and prepare the image locally. Install to disk, using the serial
> console. Create qemu user, configure ssh login. Install packages
> needed for qemu builds.
>
I recommend
Instead of fetching the prebuilt image from patchew download the install
iso and prepare the image locally. Install to disk, using the serial
console. Create qemu user, configure ssh login. Install packages
needed for qemu builds.
Signed-off-by: Gerd Hoffmann
---
tests/vm/netbsd | 178 +++