Re: NetBSD/usermode (Was: CVS commit: src)

2011-12-31 Thread Reinoud Zandijk
Hi Joerg, hi folks, On Fri, Dec 30, 2011 at 03:49:06PM +0100, Joerg Sonnenberger wrote: On Thu, Dec 22, 2011 at 08:22:17PM +0400, Valeriy E. Ushakov wrote: On Thu, Dec 22, 2011 at 15:31:45 +, David Holland wrote: Consequently, the changes should be reverted, at least until the design

Re: NetBSD/usermode (Was: CVS commit: src)

2011-12-31 Thread David Holland
On Sat, Dec 31, 2011 at 05:44:31PM +0100, Reinoud Zandijk wrote: On Fri, Dec 30, 2011 at 03:49:06PM +0100, Joerg Sonnenberger wrote: On Thu, Dec 22, 2011 at 08:22:17PM +0400, Valeriy E. Ushakov wrote: On Thu, Dec 22, 2011 at 15:31:45 +, David Holland wrote: Consequently, the

Re: NetBSD/usermode (Was: CVS commit: src)

2011-12-31 Thread Matthew Mondor
On Sat, 31 Dec 2011 17:20:16 + David Holland dholland-t...@netbsd.org wrote: The other obvious approach is to add one or more new ptrace operations to provide proper/adequate/better support for intercepting system calls. This is probably a more useful facility in the long run, and it

Re: NetBSD/usermode (Was: CVS commit: src)

2011-12-31 Thread Joerg Sonnenberger
On Sat, Dec 31, 2011 at 05:20:16PM +, David Holland wrote: The other obvious approach is to add one or more new ptrace operations to provide proper/adequate/better support for intercepting system calls. This is probably a more useful facility in the long run, and it *can* be made

Re: NetBSD/usermode (Was: CVS commit: src)

2011-12-30 Thread Joerg Sonnenberger
On Thu, Dec 22, 2011 at 08:22:17PM +0400, Valeriy E. Ushakov wrote: On Thu, Dec 22, 2011 at 15:31:45 +, David Holland wrote: Consequently, the changes should be reverted, at least until the design has been gone through carefully. Seconded. Nothing happened yet? Joerg

Re: NetBSD/usermode (Was: CVS commit: src)

2011-12-24 Thread Jean-Yves Migeon
Le 22/12/11 18:00, Thor Lancelot Simon a écrit : [snip] Anyway, that's just one possible alternate approach. Working through it makes me really wonder whether there's _any_ portable way to do this stuff. But I wish we could have a public discussion about it before hacking up public interfaces

Re: NetBSD/usermode (Was: CVS commit: src)

2011-12-24 Thread Thor Lancelot Simon
On Sun, Dec 25, 2011 at 02:44:13AM +0100, Jean-Yves Migeon wrote: Le 22/12/11 18:00, Thor Lancelot Simon a ?crit : What does usermode Linux do? It seems they implemented new syscalls (and a specific PTRACE hook) in the host to allow execution of syscalls in another context, see

NetBSD/usermode (Was: CVS commit: src)

2011-12-22 Thread Valeriy E. Ushakov
On Wed, Dec 21, 2011 at 16:47:49 +0100, Reinoud Zandijk wrote: From the beginning of the usermode project, we struggled with the fact that system calls in usermode's userland will go to the wrong kernel [...] Because you chose to run userland code in the same process with the usermode kernel

Re: NetBSD/usermode (Was: CVS commit: src)

2011-12-22 Thread Thor Lancelot Simon
On Thu, Dec 22, 2011 at 08:22:17PM +0400, Valeriy E. Ushakov wrote: On Wed, Dec 21, 2011 at 16:47:49 +0100, Reinoud Zandijk wrote: From the beginning of the usermode project, we struggled with the fact that system calls in usermode's userland will go to the wrong kernel [...] Because

Re: NetBSD/usermode (Was: CVS commit: src)

2011-12-22 Thread Mouse
This all seems simple and elegant enough, but it does not (quite) work: A) It still requires a new system call on the outer kernel. *Perhaps* this could be avoided by using ptrace, which might be simpler with this approach because the rule is simple: just say

Re: NetBSD/usermode (Was: CVS commit: src)

2011-12-22 Thread Thor Lancelot Simon
On Thu, Dec 22, 2011 at 03:46:34PM -0500, Mouse wrote: ptrace can support this too. It can let sbrk/mmap through, but tell the usermode kernel as it does so. Or it can consult with the usermode kernel first, and then let them through in a possibly modified form. I still don't see how this

Re: NetBSD/usermode (Was: CVS commit: src)

2011-12-22 Thread Christos Zoulas
In article 20111223013511.ga10...@panix.com, Thor Lancelot Simon t...@panix.com wrote: On Thu, Dec 22, 2011 at 03:46:34PM -0500, Mouse wrote: ptrace can support this too. It can let sbrk/mmap through, but tell the usermode kernel as it does so. Or it can consult with the usermode kernel

Re: NetBSD/usermode (Was: CVS commit: src)

2011-12-22 Thread David Holland
On Thu, Dec 22, 2011 at 09:23:54PM -0500, Mouse wrote: ...making them appear asynchronously with respect to userland userspace's calls to userland kernel would, yes, be difficult. (Or anything else that lets the ptracer regain control; syscalls are just the most convenient such thing.)