Re: control placement of vDSO page

From: John Reiser
Date: Mon Dec 12 2005 - 15:58:05 EST


Ingo Oeser wrote:
> On Monday 12 December 2005 16:29, John Reiser wrote:
>
>>Possible solution: a new system call move_vdso(old_addr, new_addr, flags).
>>Check that current vDSO was at old_addr, else error. Change vDSO page
>>under control of flags like in mmap(): new_addr is hint (place to start
>>search) or required address if MAP_FIXED. Return value is new vDSO address.
>>
>
>
> What about special casing the vDSO page in mremap() ?

Hmmm... Where can the new address [hint] be given in the call to
mremap(old_address, old_size, new_size, flags) ?
Also: probably the size is constant, perhaps even unknown to the user.
It would be nice if the old page need not exist (could have been
mmap()ed over) at the time of the move, although the proposed
move_vdso() does ask for what the old_addr used to be, as a check
on validity.

--
John Reiser, jreiser@xxxxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/