Re: [PATCH] Qemu support for PPC

Paul Mackerras (paulus@samba.org)
Mon, 7 Apr 2003 16:05:56 +1000


Christoph Hellwig writes:

> On Mon, Apr 07, 2003 at 03:09:37PM +1000, Paul Mackerras wrote:
> > sys_personality will fail if there isn't an exec_domain registered for
> > the personality you want.
>
> But there already is one registered :) Okay, you\re right.
>
> > Why? It's a well-contained patch that affects very little outside its
> > own area, and is quite similar to other things that have been there
> > for ages.
>
> Because stuff should go into 2.5 first. And even if it looks trivial
> there's an important policy decision here: do we want to clutter up
> our personality system for userspace emulators? If you look at the
> current list of personalities they all have kernel implementations, even
> if not all of them are currently merged, qemu OTOH is a purely userspace
> thing (and still very new!). Personally I'd rather prefer qemu doing
> pathname translation in userspace instead of bloating the kernel. This
> gets even more important when we get qemu-style emulators for other
> architectures - the number of personalities needed just for this ugly
> pathname-translation scheme will get very high.

Well, all we really want is a way to set emul_prefix. Which I could
do with a PPC-specific syscall if I had to, I guess. Doing it in
userspace is possible but ugly, because you have to handle several
different syscalls, plus keep track of the current directory, plus
handle symlinks, etc., etc., in the emulator. The kernel has all that
information readily to hand plus the data structures to keep track of
it all.

> > Anyway, it's not your call.
>
> if you look at MAINTAINERS I'm responsible for personality handling, so
> maybe it actually _is_ my call?

Oh. Ah. I didn't realize it was a subsystem with a maintainer.

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