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

2019-05-09 Thread Kamil Rytarowski
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

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

2019-05-09 Thread Kamil Rytarowski
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

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

2019-05-09 Thread Richard Henderson
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

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

2019-05-08 Thread Gerd Hoffmann
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

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

2019-05-08 Thread Kamil Rytarowski
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

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

2019-05-08 Thread Gerd Hoffmann
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 +++