From: Jeff Dike <jdike@ka...> - 2002-01-06 19:47:27
> This might be needed, although I admit I can't really figure out how
> this code is supposed to work.
Yup. What's going on there is that exec switches host processes. The old
(execing) process dies and a new one takes over. So, interrupts need to
be passed on to the new process.
The reason for this is that CLONE_VM processes share a host address space.
When one execs, it needs a new host address space, so it needs a new process.
I have exec done this all all the time to make sure this code gets tested.
When I'm happy that it works (which I pretty much am by now), I'll make that
process switch happen only for CLONE_VM processes.