> If the guest process tells us to map at a specific address, we shouldn't > increase the "last automatic mapping ended here" variable.
That sounds reasonable, in fact I'd go further. Tests on an x86-linux machine (both 32-bit and 64-bit userspace) show that if the requested address is not available then it is completely ignored. > + if (start == mmap_next_start && addr >= TASK_UNMAPPED_BASE) { > + mmap_next_start = addr; Code does not match description. Paul