Re: [Qemu-devel] [PATCH] oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD

2018-10-13 Thread Kamil Rytarowski
On 11.10.2018 23:20, Brad Smith wrote: > On Thu, Oct 11, 2018 at 09:31:23PM +0200, Kamil Rytarowski wrote: >> On 11.10.2018 16:25, Brad Smith wrote: >>> On 10/11/2018 5:41 AM, Kamil Rytarowski wrote: >>> On 11.10.2018 11:36, Peter Maydell wrote: > On 11 October 2018 at 00:55, Brad Smith w

Re: [Qemu-devel] [PATCH] oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD

2018-10-11 Thread Brad Smith
On Thu, Oct 11, 2018 at 09:31:23PM +0200, Kamil Rytarowski wrote: > On 11.10.2018 16:25, Brad Smith wrote: > > On 10/11/2018 5:41 AM, Kamil Rytarowski wrote: > > > >> On 11.10.2018 11:36, Peter Maydell wrote: > >>> On 11 October 2018 at 00:55, Brad Smith wrote: > And from FreeBSD... > >

Re: [Qemu-devel] [PATCH] oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD

2018-10-11 Thread Kamil Rytarowski
On 11.10.2018 16:25, Brad Smith wrote: > On 10/11/2018 5:41 AM, Kamil Rytarowski wrote: > >> On 11.10.2018 11:36, Peter Maydell wrote: >>> On 11 October 2018 at 00:55, Brad Smith wrote: And from FreeBSD...   MAP_STACK MAP_STACK implies MAP_ANON, and offset of 0.  The fd ar

Re: [Qemu-devel] [PATCH] oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD

2018-10-11 Thread Brad Smith
On 10/11/2018 5:41 AM, Kamil Rytarowski wrote: On 11.10.2018 11:36, Peter Maydell wrote: On 11 October 2018 at 00:55, Brad Smith wrote: And from FreeBSD... MAP_STACK MAP_STACK implies MAP_ANON, and offset of 0. The fd argument must be -1 and prot must include at least PROT_READ and PR

Re: [Qemu-devel] [PATCH] oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD

2018-10-11 Thread Kamil Rytarowski
On 11.10.2018 11:36, Peter Maydell wrote: > On 11 October 2018 at 00:55, Brad Smith wrote: >> And from FreeBSD... >> >> MAP_STACK MAP_STACK implies MAP_ANON, and offset of 0. The fd >> argument must be -1 and prot must include at least >> PROT_READ and PROT_WRITE. >> >> This option creates a

Re: [Qemu-devel] [PATCH] oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD

2018-10-11 Thread Peter Maydell
On 11 October 2018 at 00:55, Brad Smith wrote: > And from FreeBSD... > > MAP_STACK MAP_STACK implies MAP_ANON, and offset of 0. The fd > argument must be -1 and prot must include at least > PROT_READ and PROT_WRITE. > > This option creates a memory region that grows to at > most len bytes in

Re: [Qemu-devel] [PATCH] oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD

2018-10-10 Thread Brad Smith
On 10/9/2018 11:04 AM, Kamil Rytarowski wrote: On 09.10.2018 16:12, Peter Maydell wrote: On 9 October 2018 at 14:52, Kamil Rytarowski wrote: On 07.10.2018 17:37, Brad Smith wrote: Use MAP_STACK in qemu_alloc_stack() on OpenBSD. Added to -current and will be in our soon to be 6.4 release. M

Re: [Qemu-devel] [PATCH] oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD

2018-10-09 Thread Kamil Rytarowski
On 09.10.2018 16:12, Peter Maydell wrote: > On 9 October 2018 at 14:52, Kamil Rytarowski wrote: >> On 07.10.2018 17:37, Brad Smith wrote: >>> Use MAP_STACK in qemu_alloc_stack() on OpenBSD. >>> >>> Added to -current and will be in our soon to be 6.4 release. >>> >>> MAP_STACK Indicate that th

Re: [Qemu-devel] [PATCH] oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD

2018-10-09 Thread Brad Smith
On Tue, Oct 09, 2018 at 03:52:30PM +0200, Kamil Rytarowski wrote: > On 07.10.2018 17:37, Brad Smith wrote: > > Use MAP_STACK in qemu_alloc_stack() on OpenBSD. > > > > Added to -current and will be in our soon to be 6.4 release. > > > > MAP_STACK Indicate that the mapping is used as a stack.

Re: [Qemu-devel] [PATCH] oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD

2018-10-09 Thread Peter Maydell
On 9 October 2018 at 14:52, Kamil Rytarowski wrote: > On 07.10.2018 17:37, Brad Smith wrote: >> Use MAP_STACK in qemu_alloc_stack() on OpenBSD. >> >> Added to -current and will be in our soon to be 6.4 release. >> >> MAP_STACK Indicate that the mapping is used as a stack. This >>

Re: [Qemu-devel] [PATCH] oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD

2018-10-09 Thread Kamil Rytarowski
On 07.10.2018 17:37, Brad Smith wrote: > Use MAP_STACK in qemu_alloc_stack() on OpenBSD. > > Added to -current and will be in our soon to be 6.4 release. > > MAP_STACK Indicate that the mapping is used as a stack. This >flag must be used in combination with MAP_ANON and >

[Qemu-devel] [PATCH] oslib-posix: Use MAP_STACK in qemu_alloc_stack() on OpenBSD

2018-10-07 Thread Brad Smith
Use MAP_STACK in qemu_alloc_stack() on OpenBSD. Added to -current and will be in our soon to be 6.4 release. MAP_STACK Indicate that the mapping is used as a stack. This flag must be used in combination with MAP_ANON and MAP_PRIVATE. Implement MAP_STACK option