Re: [RFC, PATCH 7/24] i386 Vmi memory hole

From: Chris Wright
Date: Tue Mar 14 2006 - 23:33:46 EST


* Zachary Amsden (zach@xxxxxxxxxx) wrote:
> Chris Wright wrote:
> >* Zachary Amsden (zach@xxxxxxxxxx) wrote:
> >
> >>Allow creation of an compile time hole at the top of linear address space.
> >>
> >>Extended to allow a dynamic hole in linear address space, 7/2005. This
> >>required some serious hacking to get everything perfect, but the end
> >>result
> >>appears to function quite nicely. Everyone can now share the appreciation
> >>of pseudo-undocumented ELF OS fields, which means core dumps, debuggers
> >>and even broken or obsolete linkers may continue to work.
> >>
> >
> >Thanks. Gerd did something similar (although I believe it's simpler,
> >don't recall the relocation magic) for Xen. Either way, it's useful
> >from Xen perspective.
>
> I believe Xen disables sysenter.

Yes, so vsyscall page has int80 implementation.

> The complications in my patch come
> from the fact that the vsyscall page has to be relocated dynamically,
> requiring, basically run time linking on the page and some tweaks to get
> sysenter to work. If you don't use vsyscall (say, non-TLS glibc), then
> you don't need that complexity. But I think it might be needed now,
> even for Xen.

I believe both Xen and execshield move vsyscall out of fixmap, and then
map into userspace as normal vma.

thanks,
-chris
-
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/