Re: [PATCH] x86_64: Implement personality ADDR_LIMIT_32BIT

From: Andi Kleen
Date: Mon Oct 06 2008 - 05:50:39 EST


> > And personality() is not thread local/safe, so it's not a particularly
> > good interface to use later.
>
> qemu can call personality() before any threads will be created.

It still makes it unsuitable for a lot of other applications.
e.g. a JVM using 32bit pointers couldn't use it because it would
affect native C threads running in the same process.

>
> > Per system call switches are preferable
> > and more flexible.
>
> Per syscall switches are cool, but I don't see any advantage from it for
> qemu.

Linux interfaces are not supposed to be "interfaces for qemu" but generally
applicable interfaces.

-Andi
--
ak@xxxxxxxxxxxxxxx
--
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/