Re: fdt: rename file to prepare for fdt bus

2016-04-07 Thread Jonathan Gray
On Thu, Apr 07, 2016 at 06:31:22PM +0200, Patrick Wildt wrote: > On Thu, Apr 07, 2016 at 06:00:25PM +0200, Mark Kettenis wrote: > > > Date: Thu, 7 Apr 2016 16:54:19 +0200 > > > From: Patrick Wildt > > > > > > Hi, > > > > > > after a bit of talking with jsg@ we have found a

Re: vmm: guest<->host communication via shared memory

2016-04-07 Thread Mark Kettenis
> Date: Wed, 6 Apr 2016 20:58:16 +0200 > From: Stefan Kempf > > Stefan Kempf wrote: > > Hi, > > > > here comes a diff for vmm, and I'd like to ask people that are > > interested in our hypervisor to test this. If you are experimenting > > with vmm already, just do what you

Re: multi-pool malloc wip diff

2016-04-07 Thread Otto Moerbeek
On Wed, Mar 30, 2016 at 06:30:53PM +0200, Norman Golisz wrote: > On Mon Mar 28 2016 11:27, Otto Moerbeek wrote: > > Second diff. Only one person (Stefan Kempf, thanks!) gave feedback... > > Sorry, running with this patch since a week, but missed to give > feedback. > > As others already

Re: fdt: rename file to prepare for fdt bus

2016-04-07 Thread Patrick Wildt
On Thu, Apr 07, 2016 at 06:00:25PM +0200, Mark Kettenis wrote: > > Date: Thu, 7 Apr 2016 16:54:19 +0200 > > From: Patrick Wildt > > > > Hi, > > > > after a bit of talking with jsg@ we have found a way forward on how to > > integrate FDT into ARM. > > > > An aspect of this is

Re: fdt: rename file to prepare for fdt bus

2016-04-07 Thread Mark Kettenis
> Date: Thu, 7 Apr 2016 16:54:19 +0200 > From: Patrick Wildt > > Hi, > > after a bit of talking with jsg@ we have found a way forward on how to > integrate FDT into ARM. > > An aspect of this is having an MI FDT bus residing in sys/dev/ofw/, > where the fdt subroutines

Re: tidy syscall_mi.h

2016-04-07 Thread Ted Unangst
Michal Mazurek wrote: > Depending on the NOLOCK flag, the KERNEL_LOCK will, or will not be acquired > before calling pledge_syscall(). I therefore conclude that KERNEL_LOCK > is not needed to call pledge_syscall(). > > Also remove the goto. The code is simple enough to avoid it easily. > > I

More KERNEL_LOCK in ip_{in,out}put()

2016-04-07 Thread Martin Pieuchot
I'd like to add a lock/unlock the remaining parts of the IPv4 forwarding path that still require some work: 1/ IP source options 2/ per-ifp lookups related to multicast traffic 3/ IPsec lookups This should not matter for the moment since the whole path already run under the big lock. However

Re: tidy syscall_mi.h

2016-04-07 Thread Mark Kettenis
> Date: Thu, 7 Apr 2016 13:10:23 +0200 > From: Michal Mazurek > > Depending on the NOLOCK flag, the KERNEL_LOCK will, or will not be acquired > before calling pledge_syscall(). I therefore conclude that KERNEL_LOCK > is not needed to call pledge_syscall(). It really depends

Re: ticks usage in USB drivers

2016-04-07 Thread Martin Pieuchot
On 07/04/16(Thu) 22:29, Jonathan Gray wrote: > On Thu, Apr 07, 2016 at 01:47:13PM +0200, Martin Pieuchot wrote: > > If we need a random value to fake an Ethernet address, let's use > > arc4random(9). > > > > ok? > > You missed if_cdce.c which uses 0x2acb as well but uses microuptime. Updated

fdt: rename file to prepare for fdt bus

2016-04-07 Thread Patrick Wildt
Hi, after a bit of talking with jsg@ we have found a way forward on how to integrate FDT into ARM. An aspect of this is having an MI FDT bus residing in sys/dev/ofw/, where the fdt subroutines currently already are. Then we'll convert the vexpress platform to use FDT and continue with Exynos

Re: rework vlan(4) configuration

2016-04-07 Thread Martin Pieuchot
On 05/04/16(Tue) 09:20, David Gwynne wrote: > vlan config is now done via the vnet and parent ioctls. the idea > is config can be set up while the vlan interface is down, and then > "committed' when it is brought up and running. > > vlan up does checks of the vlan state against the target parent,

Re: ticks usage in USB drivers

2016-04-07 Thread Jonathan Gray
On Thu, Apr 07, 2016 at 01:47:13PM +0200, Martin Pieuchot wrote: > If we need a random value to fake an Ethernet address, let's use > arc4random(9). > > ok? You missed if_cdce.c which uses 0x2acb as well but uses microuptime. Why can't these all just use ether_fakeaddr() ? > > Index:

ticks usage in USB drivers

2016-04-07 Thread Martin Pieuchot
If we need a random value to fake an Ethernet address, let's use arc4random(9). ok? Index: if_cdcef.c === RCS file: /cvs/src/sys/dev/usb/if_cdcef.c,v retrieving revision 1.41 diff -u -p -r1.41 if_cdcef.c --- if_cdcef.c 25 Nov 2015

tidy syscall_mi.h

2016-04-07 Thread Michal Mazurek
Depending on the NOLOCK flag, the KERNEL_LOCK will, or will not be acquired before calling pledge_syscall(). I therefore conclude that KERNEL_LOCK is not needed to call pledge_syscall(). Also remove the goto. The code is simple enough to avoid it easily. I think this complexity was caused by

Re: document NOLOCK in syscalls.master

2016-04-07 Thread Martin Natano
On Wed, Apr 06, 2016 at 02:45:46PM +0200, Michal Mazurek wrote: > * document NOLOCK - copy and paste from the commit message. That's useful. > * mention INDIR and NOLOCK in 'Fields'. How about something like "one of the types listed below, or one of the compatibility options defined in

Re: sys_process.c: remove relebad

2016-04-07 Thread Martin Natano
On Wed, Apr 06, 2016 at 09:47:35AM +0200, Michal Mazurek wrote: > relebad used to have more body: > relebad: > PRELE(t); > return (error); > But then PRELE(t); was removed. This diff gets rid of what remains of > relebad. Looks good to me. > > Index:

Re: remove MPSAFE from makesyscalls.sh

2016-04-07 Thread Martin Natano
On Wed, Apr 06, 2016 at 03:42:20PM +0200, Michal Mazurek wrote: > MPSAFE is never used, and doesn't look like it's even supported (no > matching SY_MPSAFE anywhere). SY_MPSAFE seems to be unused since it's introduction in 2007 and it doesn't have any effect; ok natano@, if no one comes up with a