-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Simon Aridis-Lang wrote:
[...]
> User space XIP is definitely on the wish list, but it doesn't sound too 
> difficult.

I've actually been vaguely thinking about shared libraries recently; one
of the more annoying things about this sort of microkernel is that since
each server basically lives in an address space of its own, then you end
up with no shared code, and multiple versions of libc loaded at once.

Consider a simple mmap server, whose job it is to import read-only files
into its clients' address space. A client would contact this, asking for
/lib/fnord.so to be loaded; it would negotiate with the server for a
chunk of local address space, and then the server would load the file
into its own address space and then give the client read-only access.
The server would manage loading multiple copies of the same file, and
unloading them when its clients exit.

(I'm ignoring actually turning the chunk of data into a *real* shared
library; that would be ld.so's job.)

The server would already need to support the case where it has to
dictate to the client where the file gets mapped, for systems with no
MMU; this would also apply to XIP (assuming non-relocatable code). So
all that would be necessary to support seamless user-space XIP is some
private protocol between the mmap server and the filesystem. The client
wouldn't care, or even know.

Is this a sensible breakdown of functionality?

- --
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│
│ "Under communism, man exploits man. Under capitalism, it's just the
│ opposite." --- John Kenneth Galbrith
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFLFaIaf9E0noFvlzgRAkzwAJ9Aw6XvNSW+kREsr5jbPBekLlH6bgCfac1U
h6bdYE03KW2az4KrA/pQiB8=
=MIko
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Prex-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/prex-devel

Reply via email to