Re: svn commit: r313352 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux vm

2017-02-10 Thread Ngie Cooper (yaneurabeya)
> On Feb 6, 2017, at 12:57, Edward Tomasz Napierala wrote: > > Author: trasz > Date: Mon Feb 6 20:57:12 2017 > New Revision: 313352 > URL: https://svnweb.freebsd.org/changeset/base/313352 > > Log: > Add kern_vm_mmap2(), kern_vm_mprotect(), kern_vm_msync(), kern_vm_munlock(), > kern_vm_munmap

Re: svn commit: r313352 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux vm

2017-02-07 Thread Konstantin Belousov
On Tue, Feb 07, 2017 at 12:29:35PM -0600, Alan Cox wrote: > I tend to agree with John. Why not use the same types for the kern_* > parameters as are used in the corresponding args structure? Let the > conversion to the Mach VM types happen inside of the function's > implementation. I do not obje

Re: svn commit: r313352 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux vm

2017-02-07 Thread Alan Cox
On 02/07/2017 11:55, John Baldwin wrote: > On Tuesday, February 07, 2017 12:55:08 PM Edward Tomasz Napierala wrote: >> On 0207T1039, Konstantin Belousov wrote: >>> On Mon, Feb 06, 2017 at 03:03:11PM -0800, John Baldwin wrote: On Monday, February 06, 2017 08:57:12 PM Edward Tomasz Napierala wro

Re: svn commit: r313352 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux vm

2017-02-07 Thread John Baldwin
On Tuesday, February 07, 2017 12:55:08 PM Edward Tomasz Napierala wrote: > On 0207T1039, Konstantin Belousov wrote: > > On Mon, Feb 06, 2017 at 03:03:11PM -0800, John Baldwin wrote: > > > On Monday, February 06, 2017 08:57:12 PM Edward Tomasz Napierala wrote: > > > > Author: trasz > > > > Date: Mon

Re: svn commit: r313352 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux vm

2017-02-07 Thread Konstantin Belousov
On Tue, Feb 07, 2017 at 02:50:15PM +0100, Mateusz Guzik wrote: > Can we start dropping the td argument? It always is curthread and > almost always has to be anyway as something down below accesses > data in a manner only safe for curthread (classic: credential checks). > > With this example the fu

Re: svn commit: r313352 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux vm

2017-02-07 Thread Mateusz Guzik
On Mon, Feb 06, 2017 at 08:57:12PM +, Edward Tomasz Napierala wrote: > Author: trasz > Date: Mon Feb 6 20:57:12 2017 > New Revision: 313352 > URL: https://svnweb.freebsd.org/changeset/base/313352 > > Log: > Add kern_vm_mmap2(), kern_vm_mprotect(), kern_vm_msync(), kern_vm_munlock(), > ker

Re: svn commit: r313352 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux vm

2017-02-07 Thread Edward Tomasz Napierala
On 0207T1039, Konstantin Belousov wrote: > On Mon, Feb 06, 2017 at 03:03:11PM -0800, John Baldwin wrote: > > On Monday, February 06, 2017 08:57:12 PM Edward Tomasz Napierala wrote: > > > Author: trasz > > > Date: Mon Feb 6 20:57:12 2017 > > > New Revision: 313352 > > > URL: https://svnweb.freebsd.

Re: svn commit: r313352 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux vm

2017-02-07 Thread Konstantin Belousov
On Mon, Feb 06, 2017 at 03:03:11PM -0800, John Baldwin wrote: > On Monday, February 06, 2017 08:57:12 PM Edward Tomasz Napierala wrote: > > Author: trasz > > Date: Mon Feb 6 20:57:12 2017 > > New Revision: 313352 > > URL: https://svnweb.freebsd.org/changeset/base/313352 > > > > Log: > > Add ker

Re: svn commit: r313352 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux vm

2017-02-06 Thread John Baldwin
On Monday, February 06, 2017 08:57:12 PM Edward Tomasz Napierala wrote: > Author: trasz > Date: Mon Feb 6 20:57:12 2017 > New Revision: 313352 > URL: https://svnweb.freebsd.org/changeset/base/313352 > > Log: > Add kern_vm_mmap2(), kern_vm_mprotect(), kern_vm_msync(), kern_vm_munlock(), > kern

svn commit: r313352 - in head/sys: compat/cloudabi compat/freebsd32 compat/linux vm

2017-02-06 Thread Edward Tomasz Napierala
Author: trasz Date: Mon Feb 6 20:57:12 2017 New Revision: 313352 URL: https://svnweb.freebsd.org/changeset/base/313352 Log: Add kern_vm_mmap2(), kern_vm_mprotect(), kern_vm_msync(), kern_vm_munlock(), kern_vm_munmap(), and kern_vm_madvise(), and use them in various compats instead of their