On Fri, Jan 06, 2006 at 06:01:13PM -0600, Rob Landley wrote:
> Unfortunately, stock kernels don't let you just discard a system call, so you
> have to pass _something_ on to the underlying OS before you can resume from
> the ptrace. But you can change all the information both on the way in and on
> the way out, so what UML did was it turned all system calls into "getpid",
> which it then ignored the return value of in favor of doing its own system
> call handling. Stock kernels also don't allow one process to remap another
> process's memory, which is kind of important in context switching and meant
> that each process being traced had to be a separate PID on the host, because
> the UML kernel couldn't remap that process's page tables.
>
> Doing both of these things (a seperate host process for each UML process, and
> calling getpid() for all system calls), is what "Tracing Thread" mode did.
> The UML kernel was one thread among several, and it was kinda slow.
The skas vs tt distinction is the address space part of this. How we nullify
system calls is separate. That's the PTRACE_SYSCALL vs PTRACE_SYSEMU (which
is now in mainline) thing.
> Then somebody got drunk and came up with something extremely clever that I'm
> _still_ trying to get a clear explanation of, but they found out a way to run
> SKAS mode on an unmodified kernel by sacrificing a chicken or something, and
> this became known as "SKAS0" mode.
Hehe, that would be Blaisorblade - I've refrained from asking what he had
to sacrifice.
> It's not as fast as SKAS3 mode
> (sacrificing chickens takes time), but it's faster than TT mode and a lot
> less cluttered because you don't need a separate process on the host for each
> process running under User Mode Linux kernel.
skas0 still requires one host process per UML process. That's how it gets
host address spaces, which skas3 does using /proc/mm. In this sense, skas0
is sort of a cross between tt and skas3 modes.
Jeff
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]