Re: [PATCH] bsd-user: Specify host page alignment if none specified

2023-07-28 Thread Warner Losh
On Fri, Jul 28, 2023 at 7:41 AM Richard Henderson < richard.hender...@linaro.org> wrote: > On 7/28/23 06:34, Richard Henderson wrote: > > On 7/27/23 20:54, Warner Losh wrote: > >> We're hitting an assert when we pass in alignment == 0 since that's not > >> a power of two. so pass in the ideal page

Re: [PATCH] bsd-user: Specify host page alignment if none specified

2023-07-28 Thread Richard Henderson
On 7/28/23 06:34, Richard Henderson wrote: On 7/27/23 20:54, Warner Losh wrote: We're hitting an assert when we pass in alignment == 0 since that's not a power of two. so pass in the ideal page size. Signed-off-by: Warner Losh ---   bsd-user/mmap.c | 2 +-   1 file changed, 1 insertion(+), 1 de

Re: [PATCH] bsd-user: Specify host page alignment if none specified

2023-07-28 Thread Richard Henderson
On 7/27/23 20:54, Warner Losh wrote: We're hitting an assert when we pass in alignment == 0 since that's not a power of two. so pass in the ideal page size. Signed-off-by: Warner Losh --- bsd-user/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Richard Henderson

[PATCH] bsd-user: Specify host page alignment if none specified

2023-07-27 Thread Warner Losh
We're hitting an assert when we pass in alignment == 0 since that's not a power of two. so pass in the ideal page size. Signed-off-by: Warner Losh --- bsd-user/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c index 74ed00b9fe3..e3ce4ab1