Re: [Qemu-devel] [PATCH] linux-user: Align mmap memory to the target page size.

2010-01-25 Thread Richard Henderson
On 01/25/2010 05:35 AM, Riku Voipio wrote: On Fri, Jan 15, 2010 at 07:43:48AM -0800, Richard Henderson wrote: This patch uses a more complex search algorithm that takes the result of the previous allocation into account. We normally search upward, but notice 2 consecutive results and start sear

Re: [Qemu-devel] [PATCH] linux-user: Align mmap memory to the target page size.

2010-01-25 Thread Riku Voipio
On Fri, Jan 15, 2010 at 07:43:48AM -0800, Richard Henderson wrote: >> This patch uses a more complex search algorithm that takes the result >> of the previous allocation into account. We normally search upward, >> but notice 2 consecutive results and start searching downward instead. > I've faile

Re: [Qemu-devel] [PATCH] linux-user: Align mmap memory to the target page size.

2010-01-15 Thread Richard Henderson
On 01/14/2010 04:38 PM, Richard Henderson wrote: Previously, mmap_find_vma could return addresses not properly aligned to the target page size. This of course led to all sorts of odd problems down the road. The trivial fix, to simply reject the unaligned address and continue searching the addre

[Qemu-devel] [PATCH] linux-user: Align mmap memory to the target page size.

2010-01-14 Thread Richard Henderson
Previously, mmap_find_vma could return addresses not properly aligned to the target page size. This of course led to all sorts of odd problems down the road. The trivial fix, to simply reject the unaligned address and continue searching the address space by increments of one page, is not a good i